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