@@ -2,36 +2,83 @@ error[E0567]: auto traits cannot have generic parameters
2
2
--> $DIR/auto-trait-validation.rs:6:19
3
3
|
4
4
LL | auto trait Generic<T> {}
5
- | -------^^^ help: remove the parameters
5
+ | -------^^^
6
6
| |
7
7
| auto trait cannot have generic parameters
8
8
9
9
error[E0568]: auto traits cannot have super traits or lifetime bounds
10
- --> $DIR/auto-trait-validation.rs:8:17
10
+ --> $DIR/auto-trait-validation.rs:8:20
11
11
|
12
12
LL | auto trait Bound : Copy {}
13
- | -----^^^^^^^ help: remove the super traits or lifetime bounds
13
+ | ----- ^^^^
14
14
| |
15
15
| auto traits cannot have super traits or lifetime bounds
16
16
17
17
error[E0568]: auto traits cannot have super traits or lifetime bounds
18
- --> $DIR/auto-trait-validation.rs:10:25
18
+ --> $DIR/auto-trait-validation.rs:10:28
19
19
|
20
20
LL | auto trait LifetimeBound : 'static {}
21
- | -------------^^^^^^^^^^ help: remove the super traits or lifetime bounds
21
+ | ------------- ^^^^^^^
22
22
| |
23
23
| auto traits cannot have super traits or lifetime bounds
24
24
25
25
error[E0380]: auto traits cannot have associated items
26
26
--> $DIR/auto-trait-validation.rs:12:25
27
27
|
28
28
LL | auto trait MyTrait { fn foo() {} }
29
- | ------- ---^^^-----
30
- | | |
31
- | | help: remove these associated items
29
+ | ------- ^^^
30
+ | |
31
+ | auto traits cannot have associated items
32
+
33
+ error[E0380]: auto traits cannot have associated items
34
+ --> $DIR/auto-trait-validation.rs:14:27
35
+ |
36
+ LL | auto trait AssocTy { type Bar; }
37
+ | ------- ^^^
38
+ | |
32
39
| auto traits cannot have associated items
33
40
34
- error: aborting due to 4 previous errors
41
+ error[E0567]: auto traits cannot have generic parameters
42
+ --> $DIR/auto-trait-validation.rs:16:15
43
+ |
44
+ LL | auto trait All<'a, T> {
45
+ | ---^^^^^^^
46
+ | |
47
+ | auto trait cannot have generic parameters
48
+
49
+ error[E0380]: auto traits cannot have associated items
50
+ --> $DIR/auto-trait-validation.rs:18:10
51
+ |
52
+ LL | auto trait All<'a, T> {
53
+ | --- auto traits cannot have associated items
54
+ LL |
55
+ LL | type Bar;
56
+ | ^^^
57
+ LL |
58
+ LL | fn foo() {}
59
+ | ^^^
60
+
61
+ error[E0568]: auto traits cannot have super traits or lifetime bounds
62
+ --> $DIR/auto-trait-validation.rs:23:18
63
+ |
64
+ LL | auto trait All2: Copy + 'static {
65
+ | ---- ^^^^ ^^^^^^^
66
+ | |
67
+ | auto traits cannot have super traits or lifetime bounds
68
+
69
+ error[E0380]: auto traits cannot have associated items
70
+ --> $DIR/auto-trait-validation.rs:25:10
71
+ |
72
+ LL | auto trait All2: Copy + 'static {
73
+ | ---- auto traits cannot have associated items
74
+ LL |
75
+ LL | type Bar;
76
+ | ^^^
77
+ LL |
78
+ LL | fn foo() {}
79
+ | ^^^
80
+
81
+ error: aborting due to 9 previous errors
35
82
36
83
Some errors have detailed explanations: E0380, E0567, E0568.
37
84
For more information about an error, try `rustc --explain E0380`.
0 commit comments