fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied 2 --> $DIR/issue-102140.rs:23:22 3 | 4LL | MyTrait::foo(&self) 5 | ------------ ^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait` 6 | | 7 | required by a bound introduced by this call 8 | 9help: consider removing the leading `&`-reference 10 | 11LL - MyTrait::foo(&self) 12LL + MyTrait::foo(self) 13 | 14 15error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied 16 --> $DIR/issue-102140.rs:23:9 17 | 18LL | MyTrait::foo(&self) 19 | ^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait` 20 | 21 = help: the trait `MyTrait` is implemented for `Outer` 22 23error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied 24 --> $DIR/issue-102140.rs:23:9 25 | 26LL | MyTrait::foo(&self) 27 | ^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait` 28 | 29 = help: the trait `MyTrait` is implemented for `Outer` 30 31error: aborting due to 3 previous errors 32 33For more information about this error, try `rustc --explain E0277`.