]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/in-trait/issue-102140.stderr
Rollup merge of #105405 - sunfishcode:sunfishcode/export-dynamic, r=TaKO8Ki
[rust.git] / src / test / ui / impl-trait / in-trait / issue-102140.stderr
1 error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied
2   --> $DIR/issue-102140.rs:23:22
3    |
4 LL |         MyTrait::foo(&self)
5    |         ------------ -^^^^
6    |         |            |
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
10
11 error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied
12   --> $DIR/issue-102140.rs:23:9
13    |
14 LL |         MyTrait::foo(&self)
15    |         ^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait`
16    |
17    = help: the trait `MyTrait` is implemented for `Outer`
18
19 error[E0277]: the trait bound `&dyn MyTrait: MyTrait` is not satisfied
20   --> $DIR/issue-102140.rs:23:9
21    |
22 LL |         MyTrait::foo(&self)
23    |         ^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `&dyn MyTrait`
24    |
25    = help: the trait `MyTrait` is implemented for `Outer`
26
27 error: aborting due to 3 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.