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