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