]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0568]: auto traits cannot have super traits |
0731742a | 2 | --> $DIR/traits-inductive-overflow-supertrait-oibit.rs:7:1 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | auto trait Magic: Copy {} |
b7449926 XL |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | ||
7 | error[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 |
10 | LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) } |
11 | | ---- ----- required by this bound in `copy` | |
12 | ... | |
532ac7d7 | 13 | LL | 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 | |
18 | error: aborting due to 2 previous errors | |
19 | ||
e74abb32 XL |
20 | Some errors have detailed explanations: E0277, E0568. |
21 | For more information about an error, try `rustc --explain E0277`. |