fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `T: Copy` is not satisfied 2 --> $DIR/explicit-drop-bounds.rs:37:18 3 | 4LL | impl<T> Drop for DropMe<T> 5 | ^^^^^^^^^ the trait `Copy` is not implemented for `T` 6 | 7note: required by a bound in `DropMe` 8 --> $DIR/explicit-drop-bounds.rs:7:18 9 | 10LL | struct DropMe<T: Copy>(T); 11 | ^^^^ required by this bound in `DropMe` 12help: consider restricting type parameter `T` 13 | 14LL | impl<T: std::marker::Copy> Drop for DropMe<T> 15 | +++++++++++++++++++ 16 17error[E0277]: the trait bound `T: Copy` is not satisfied 18 --> $DIR/explicit-drop-bounds.rs:40:18 19 | 20LL | fn drop(&mut self) {} 21 | ^^^^ the trait `Copy` is not implemented for `T` 22 | 23note: required by a bound in `DropMe` 24 --> $DIR/explicit-drop-bounds.rs:7:18 25 | 26LL | struct DropMe<T: Copy>(T); 27 | ^^^^ required by this bound in `DropMe` 28help: consider restricting type parameter `T` 29 | 30LL | impl<T: std::marker::Copy> Drop for DropMe<T> 31 | +++++++++++++++++++ 32 33error: aborting due to 2 previous errors 34 35For more information about this error, try `rustc --explain E0277`.