fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: the feature `negative_bounds` is incomplete and may not be safe to use and/or cause compiler crashes 2 --> $DIR/simple.rs:1:12 3 | 4LL | #![feature(negative_bounds, negative_impls)] 5 | ^^^^^^^^^^^^^^^ 6 | 7 = note: `#[warn(incomplete_features)]` on by default 8 9error[E0277]: the trait bound `T: !Copy` is not satisfied 10 --> $DIR/simple.rs:11:16 11 | 12LL | not_copy::<T>(); 13 | ^ the trait `!Copy` is not implemented for `T` 14 | 15note: required by a bound in `not_copy` 16 --> $DIR/simple.rs:4:16 17 | 18LL | fn not_copy<T: !Copy>() {} 19 | ^^^^^ required by this bound in `not_copy` 20 21error[E0277]: the trait bound `T: !Copy` is not satisfied 22 --> $DIR/simple.rs:16:16 23 | 24LL | not_copy::<T>(); 25 | ^ the trait `!Copy` is not implemented for `T` 26 | 27note: required by a bound in `not_copy` 28 --> $DIR/simple.rs:4:16 29 | 30LL | fn not_copy<T: !Copy>() {} 31 | ^^^^^ required by this bound in `not_copy` 32 33error[E0277]: the trait bound `Copyable: !Copy` is not satisfied 34 --> $DIR/simple.rs:31:16 35 | 36LL | not_copy::<Copyable>(); 37 | ^^^^^^^^ the trait `!Copy` is not implemented for `Copyable` 38 | 39 = help: the trait `Copy` is implemented for `Copyable` 40note: required by a bound in `not_copy` 41 --> $DIR/simple.rs:4:16 42 | 43LL | fn not_copy<T: !Copy>() {} 44 | ^^^^^ required by this bound in `not_copy` 45help: consider annotating `Copyable` with `#[derive(Copy)]` 46 | 47LL + #[derive(Copy)] 48LL | struct Copyable; 49 | 50 51error[E0277]: the trait bound `NotNecessarilyCopyable: !Copy` is not satisfied 52 --> $DIR/simple.rs:38:16 53 | 54LL | not_copy::<NotNecessarilyCopyable>(); 55 | ^^^^^^^^^^^^^^^^^^^^^^ the trait `!Copy` is not implemented for `NotNecessarilyCopyable` 56 | 57note: required by a bound in `not_copy` 58 --> $DIR/simple.rs:4:16 59 | 60LL | fn not_copy<T: !Copy>() {} 61 | ^^^^^ required by this bound in `not_copy` 62help: consider annotating `NotNecessarilyCopyable` with `#[derive(Copy)]` 63 | 64LL + #[derive(Copy)] 65LL | struct NotNecessarilyCopyable; 66 | 67 68error: aborting due to 4 previous errors; 1 warning emitted 69 70For more information about this error, try `rustc --explain E0277`.