rust/tests/ui/impl-trait/issues/issue-86719.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
751 B
Plaintext
Raw Normal View History

2022-02-17 13:55:58 +00:00
error: at least one trait must be specified
--> $DIR/issue-86719.rs:7:14
|
LL | type E = impl ;
| ^^^^
error[E0407]: method `foo` is not a member of trait `Bar`
--> $DIR/issue-86719.rs:8:5
|
LL | / fn foo() -> Self::E {
LL | |
2022-02-17 13:55:58 +00:00
LL | | |_| true
LL | | }
| |_____^ not a member of trait `Bar`
error[E0282]: type annotations needed
--> $DIR/issue-86719.rs:10:10
2022-02-17 13:55:58 +00:00
|
LL | |_| true
2022-02-14 12:25:26 +00:00
| ^
|
2022-12-13 19:36:43 +00:00
help: consider giving this closure parameter an explicit type
2022-02-14 12:25:26 +00:00
|
2022-12-13 19:36:43 +00:00
LL | |_: /* Type */| true
| ++++++++++++
2022-02-17 13:55:58 +00:00
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0282, E0407.
For more information about an error, try `rustc --explain E0282`.