fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0568]: auto traits cannot have super traits or lifetime bounds 2 --> $DIR/supertrait-auto-trait.rs:8:17 3 | 4LL | auto trait Magic: Copy {} 5 | -----^^^^^^ help: remove the super traits or lifetime bounds 6 | | 7 | auto traits cannot have super traits or lifetime bounds 8 9error[E0277]: the trait bound `NoClone: Copy` is not satisfied 10 --> $DIR/supertrait-auto-trait.rs:16:23 11 | 12LL | let (a, b) = copy(NoClone); 13 | ---- ^^^^^^^ the trait `Copy` is not implemented for `NoClone` 14 | | 15 | required by a bound introduced by this call 16 | 17note: required for `NoClone` to implement `Magic` 18 --> $DIR/supertrait-auto-trait.rs:8:12 19 | 20LL | auto trait Magic: Copy {} 21 | ^^^^^ 22note: required by a bound in `copy` 23 --> $DIR/supertrait-auto-trait.rs:10:12 24 | 25LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) } 26 | ^^^^^ required by this bound in `copy` 27help: consider annotating `NoClone` with `#[derive(Copy)]` 28 | 29LL + #[derive(Copy)] 30LL | struct NoClone; 31 | 32 33error: aborting due to 2 previous errors 34 35Some errors have detailed explanations: E0277, E0568. 36For more information about an error, try `rustc --explain E0277`.