blob: 2cd7ebd60b143cb45b2b1347994c844f10a4dabe (
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
31
32
|
error: missing `for` in a trait impl
--> $DIR/issue-27255.rs:3:7
|
LL | impl A .. {}
| ^
|
help: add `for` here
|
LL | impl A for .. {}
| +++
error: missing `for` in a trait impl
--> $DIR/issue-27255.rs:7:7
|
LL | impl A usize {}
| ^^^^^^
|
help: add `for` here
|
LL | impl A for usize {}
| +++
error: `impl Trait for .. {}` is an obsolete syntax
--> $DIR/issue-27255.rs:3:1
|
LL | impl A .. {}
| ^^^^^^^^^^^^
|
= help: use `auto trait Trait {}` instead
error: aborting due to 3 previous errors
|