]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-trait-validation.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / auto-trait-validation.stderr
1 error[E0567]: auto traits cannot have generic parameters
2   --> $DIR/auto-trait-validation.rs:13:1
3    |
4 LL | auto trait Generic<T> {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0568]: auto traits cannot have super traits
8   --> $DIR/auto-trait-validation.rs:15:1
9    |
10 LL | auto trait Bound : Copy {}
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error[E0380]: auto traits cannot have methods or associated items
14   --> $DIR/auto-trait-validation.rs:17:1
15    |
16 LL | auto trait MyTrait { fn foo() {} }
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 Some errors occurred: E0380, E0567, E0568.
22 For more information about an error, try `rustc --explain E0380`.