@@ -2,36 +2,83 @@ error[E0567]: auto traits cannot have generic parameters
22 --> $DIR/auto-trait-validation.rs:6:19
33 |
44LL | auto trait Generic<T> {}
5- | -------^^^ help: remove the parameters
5+ | -------^^^
66 | |
77 | auto trait cannot have generic parameters
88
99error[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
1111 |
1212LL | auto trait Bound : Copy {}
13- | -----^^^^^^^ help: remove the super traits or lifetime bounds
13+ | ----- ^^^^
1414 | |
1515 | auto traits cannot have super traits or lifetime bounds
1616
1717error[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
1919 |
2020LL | auto trait LifetimeBound : 'static {}
21- | -------------^^^^^^^^^^ help: remove the super traits or lifetime bounds
21+ | ------------- ^^^^^^^
2222 | |
2323 | auto traits cannot have super traits or lifetime bounds
2424
2525error[E0380]: auto traits cannot have associated items
2626 --> $DIR/auto-trait-validation.rs:12:25
2727 |
2828LL | 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+ | |
3239 | auto traits cannot have associated items
3340
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
3582
3683Some errors have detailed explanations: E0380, E0567, E0568.
3784For more information about an error, try `rustc --explain E0380`.
0 commit comments