]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0568]: auto traits cannot have super traits |
ba9703b0 | 2 | --> $DIR/traits-inductive-overflow-supertrait-oibit.rs:8:19 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | auto trait Magic: Copy {} |
ba9703b0 XL |
5 | | ----- ^^^^ help: remove the super traits |
6 | | | | |
7 | | auto trait cannot have super traits | |
b7449926 | 8 | |
1b1a35ee | 9 | error[E0277]: the trait bound `NoClone: Copy` is not satisfied |
ba9703b0 | 10 | --> $DIR/traits-inductive-overflow-supertrait-oibit.rs:16:23 |
b7449926 | 11 | | |
e1599b0c | 12 | LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) } |
ba9703b0 | 13 | | ----- required by this bound in `copy` |
e1599b0c | 14 | ... |
532ac7d7 | 15 | LL | let (a, b) = copy(NoClone); |
1b1a35ee | 16 | | ^^^^^^^ the trait `Copy` is not implemented for `NoClone` |
b7449926 XL |
17 | | |
18 | = note: required because of the requirements on the impl of `Magic` for `NoClone` | |
b7449926 XL |
19 | |
20 | error: aborting due to 2 previous errors | |
21 | ||
e74abb32 XL |
22 | Some errors have detailed explanations: E0277, E0568. |
23 | For more information about an error, try `rustc --explain E0277`. |