]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0567]: auto traits cannot have generic parameters |
ba9703b0 | 2 | --> $DIR/auto-trait-validation.rs:3:19 |
b7449926 XL |
3 | | |
4 | LL | auto trait Generic<T> {} | |
ba9703b0 XL |
5 | | -------^^^ help: remove the parameters |
6 | | | | |
7 | | auto trait cannot have generic parameters | |
b7449926 XL |
8 | |
9 | error[E0568]: auto traits cannot have super traits | |
ba9703b0 | 10 | --> $DIR/auto-trait-validation.rs:5:20 |
b7449926 XL |
11 | | |
12 | LL | auto trait Bound : Copy {} | |
ba9703b0 XL |
13 | | ----- ^^^^ help: remove the super traits |
14 | | | | |
15 | | auto trait cannot have super traits | |
b7449926 XL |
16 | |
17 | error[E0380]: auto traits cannot have methods or associated items | |
ba9703b0 | 18 | --> $DIR/auto-trait-validation.rs:7:25 |
b7449926 XL |
19 | | |
20 | LL | auto trait MyTrait { fn foo() {} } | |
ba9703b0 XL |
21 | | ------- ^^^ |
22 | | | | |
23 | | auto trait cannot have items | |
b7449926 XL |
24 | |
25 | error: aborting due to 3 previous errors | |
26 | ||
e74abb32 XL |
27 | Some errors have detailed explanations: E0380, E0567, E0568. |
28 | For more information about an error, try `rustc --explain E0380`. |