]> git.lizzy.rs Git - rust.git/blob - tests/ui/auto-traits/auto-trait-validation.stderr
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / auto-traits / auto-trait-validation.stderr
1 error[E0567]: auto traits cannot have generic parameters
2   --> $DIR/auto-trait-validation.rs:5: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 or lifetime bounds
10   --> $DIR/auto-trait-validation.rs:7:17
11    |
12 LL | auto trait Bound : Copy {}
13    |            -----^^^^^^^ help: remove the super traits or lifetime bounds
14    |            |
15    |            auto trait cannot have super traits or lifetime bounds
16
17 error[E0568]: auto traits cannot have super traits or lifetime bounds
18   --> $DIR/auto-trait-validation.rs:9:25
19    |
20 LL | auto trait LifetimeBound : 'static {}
21    |            -------------^^^^^^^^^^ help: remove the super traits or lifetime bounds
22    |            |
23    |            auto trait cannot have super traits or lifetime bounds
24
25 error[E0380]: auto traits cannot have associated items
26   --> $DIR/auto-trait-validation.rs:11:25
27    |
28 LL | auto trait MyTrait { fn foo() {} }
29    |            -------   ---^^^-----
30    |            |         |
31    |            |         help: remove these associated items
32    |            auto trait cannot have associated items
33
34 error: aborting due to 4 previous errors
35
36 Some errors have detailed explanations: E0380, E0567, E0568.
37 For more information about an error, try `rustc --explain E0380`.