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