]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / traits / inductive-overflow / supertrait-auto-trait.stderr
CommitLineData
b7449926 1error[E0568]: auto traits cannot have super traits
6a06907d 2 --> $DIR/supertrait-auto-trait.rs:8:19
b7449926 3 |
532ac7d7 4LL | auto trait Magic: Copy {}
ba9703b0
XL
5 | ----- ^^^^ help: remove the super traits
6 | |
7 | auto trait cannot have super traits
b7449926 8
1b1a35ee 9error[E0277]: the trait bound `NoClone: Copy` is not satisfied
6a06907d 10 --> $DIR/supertrait-auto-trait.rs:16:23
b7449926 11 |
532ac7d7 12LL | let (a, b) = copy(NoClone);
1b1a35ee 13 | ^^^^^^^ the trait `Copy` is not implemented for `NoClone`
b7449926
XL
14 |
15 = note: required because of the requirements on the impl of `Magic` for `NoClone`
94222f64
XL
16note: required by a bound in `copy`
17 --> $DIR/supertrait-auto-trait.rs:10:12
18 |
19LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
20 | ^^^^^ required by this bound in `copy`
b7449926
XL
21
22error: aborting due to 2 previous errors
23
e74abb32
XL
24Some errors have detailed explanations: E0277, E0568.
25For more information about an error, try `rustc --explain E0277`.