summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/negative-bounds/simple.stderr
blob: a3cab41a2ce0f247d7a3ed03bb0ca0571a69fff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
warning: the feature `negative_bounds` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/simple.rs:1:12
   |
LL | #![feature(negative_bounds, negative_impls)]
   |            ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(incomplete_features)]` on by default

error[E0277]: the trait bound `T: !Copy` is not satisfied
  --> $DIR/simple.rs:11:16
   |
LL |     not_copy::<T>();
   |                ^ the trait `!Copy` is not implemented for `T`
   |
note: required by a bound in `not_copy`
  --> $DIR/simple.rs:4:16
   |
LL | fn not_copy<T: !Copy>() {}
   |                ^^^^^ required by this bound in `not_copy`

error[E0277]: the trait bound `T: !Copy` is not satisfied
  --> $DIR/simple.rs:16:16
   |
LL |     not_copy::<T>();
   |                ^ the trait `!Copy` is not implemented for `T`
   |
note: required by a bound in `not_copy`
  --> $DIR/simple.rs:4:16
   |
LL | fn not_copy<T: !Copy>() {}
   |                ^^^^^ required by this bound in `not_copy`

error[E0277]: the trait bound `Copyable: !Copy` is not satisfied
  --> $DIR/simple.rs:31:16
   |
LL |     not_copy::<Copyable>();
   |                ^^^^^^^^ the trait `!Copy` is not implemented for `Copyable`
   |
   = help: the trait `Copy` is implemented for `Copyable`
note: required by a bound in `not_copy`
  --> $DIR/simple.rs:4:16
   |
LL | fn not_copy<T: !Copy>() {}
   |                ^^^^^ required by this bound in `not_copy`
help: consider annotating `Copyable` with `#[derive(Copy)]`
   |
LL + #[derive(Copy)]
LL | struct Copyable;
   |

error[E0277]: the trait bound `NotNecessarilyCopyable: !Copy` is not satisfied
  --> $DIR/simple.rs:38:16
   |
LL |     not_copy::<NotNecessarilyCopyable>();
   |                ^^^^^^^^^^^^^^^^^^^^^^ the trait `!Copy` is not implemented for `NotNecessarilyCopyable`
   |
note: required by a bound in `not_copy`
  --> $DIR/simple.rs:4:16
   |
LL | fn not_copy<T: !Copy>() {}
   |                ^^^^^ required by this bound in `not_copy`
help: consider annotating `NotNecessarilyCopyable` with `#[derive(Copy)]`
   |
LL + #[derive(Copy)]
LL | struct NotNecessarilyCopyable;
   |

error: aborting due to 4 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0277`.