summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-86719.stderr
blob: 15893df5f945865da6dc501ab483e6bbae2dd30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 | |
LL | |         |_| true
LL | |     }
   | |_____^ not a member of trait `Bar`

error[E0282]: type annotations needed
  --> $DIR/issue-86719.rs:10:10
   |
LL |         |_| true
   |          ^
   |
help: consider giving this closure parameter an explicit type
   |
LL |         |_: /* Type */| true
   |           ++++++++++++

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0282, E0407.
For more information about an error, try `rustc --explain E0282`.