1 error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied
2 --> $DIR/issue-102140.rs:23:22
4 LL | MyTrait::foo(&self)
7 | | the trait `MyTrait` is not implemented for `&dyn MyTrait`
8 | | help: consider removing the leading `&`-reference
9 | required by a bound introduced by this call
11 error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied
12 --> $DIR/issue-102140.rs:23:9
14 LL | MyTrait::foo(&self)
15 | ^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait`
17 = help: the trait `MyTrait` is implemented for `Outer`
19 error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied
20 --> $DIR/issue-102140.rs:23:9
22 LL | MyTrait::foo(&self)
23 | ^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait`
25 = help: the trait `MyTrait` is implemented for `Outer`
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0277`.