warning: trait item `hello` from `C` shadows identically named item from supertrait
  --> $DIR/common-ancestor-2.rs:23:5
   |
LL |     fn hello(&self) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: items from several supertraits are shadowed: `B` and `A`
  --> $DIR/common-ancestor-2.rs:9:5
   |
LL |     fn hello(&self) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL |     fn hello(&self) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the lint level is defined here
  --> $DIR/common-ancestor-2.rs:5:9
   |
LL | #![warn(shadowing_supertrait_items)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: trait item `hello` from `C` shadows identically named item from supertrait
  --> $DIR/common-ancestor-2.rs:31:19
   |
LL |     assert_eq!(().hello(), "C");
   |                   ^^^^^
   |
note: item from `C` shadows a supertrait item
  --> $DIR/common-ancestor-2.rs:23:5
   |
LL |     fn hello(&self) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: items from several supertraits are shadowed: `A` and `B`
  --> $DIR/common-ancestor-2.rs:9:5
   |
LL |     fn hello(&self) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL |     fn hello(&self) -> &'static str {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the lint level is defined here
  --> $DIR/common-ancestor-2.rs:4:9
   |
LL | #![warn(resolving_to_items_shadowing_supertrait_items)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: 2 warnings emitted

