1
1
error[E0277]: can't drop `NonTrivialDrop` in const contexts
2
- --> $DIR/const-drop-fail.rs:43 :5
2
+ --> $DIR/const-drop-fail.rs:44 :5
3
3
|
4
4
LL | const _: () = check($exp);
5
5
| ----- required by a bound introduced by this call
@@ -9,7 +9,7 @@ LL | NonTrivialDrop,
9
9
|
10
10
= note: the trait bound `NonTrivialDrop: ~const Destruct` is not satisfied
11
11
note: required by a bound in `check`
12
- --> $DIR/const-drop-fail.rs:34 :19
12
+ --> $DIR/const-drop-fail.rs:35 :19
13
13
|
14
14
LL | const fn check<T: ~const Destruct>(_: T) {}
15
15
| ^^^^^^^^^^^^^^^ required by this bound in `check`
@@ -21,7 +21,7 @@ LL | &mut NonTrivialDrop,
21
21
| ++++
22
22
23
23
error[E0277]: can't drop `NonTrivialDrop` in const contexts
24
- --> $DIR/const-drop-fail.rs:45 :5
24
+ --> $DIR/const-drop-fail.rs:46 :5
25
25
|
26
26
LL | const _: () = check($exp);
27
27
| ----- required by a bound introduced by this call
@@ -30,7 +30,7 @@ LL | ConstImplWithDropGlue(NonTrivialDrop),
30
30
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `ConstImplWithDropGlue`, the trait `~const Destruct` is not implemented for `NonTrivialDrop`
31
31
|
32
32
note: the trait `Destruct` is implemented for `NonTrivialDrop`, but that implementation is not `const`
33
- --> $DIR/const-drop-fail.rs:45 :5
33
+ --> $DIR/const-drop-fail.rs:46 :5
34
34
|
35
35
LL | ConstImplWithDropGlue(NonTrivialDrop),
36
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -40,13 +40,13 @@ note: required because it appears within the type `ConstImplWithDropGlue`
40
40
LL | struct ConstImplWithDropGlue(NonTrivialDrop);
41
41
| ^^^^^^^^^^^^^^^^^^^^^
42
42
note: required by a bound in `check`
43
- --> $DIR/const-drop-fail.rs:34 :19
43
+ --> $DIR/const-drop-fail.rs:35 :19
44
44
|
45
45
LL | const fn check<T: ~const Destruct>(_: T) {}
46
46
| ^^^^^^^^^^^^^^^ required by this bound in `check`
47
47
48
48
error[E0277]: the trait bound `ConstDropImplWithBounds<NonTrivialDrop>: ~const Destruct` is not satisfied
49
- --> $DIR/const-drop-fail.rs:47 :5
49
+ --> $DIR/const-drop-fail.rs:48 :5
50
50
|
51
51
LL | const _: () = check($exp);
52
52
| ----- required by a bound introduced by this call
@@ -55,14 +55,14 @@ LL | ConstDropImplWithBounds::<NonTrivialDrop>(PhantomData),
55
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `~const Destruct` is not implemented for `ConstDropImplWithBounds<NonTrivialDrop>`
56
56
|
57
57
note: required for `ConstDropImplWithBounds<NonTrivialDrop>` to implement `~const Destruct`
58
- --> $DIR/const-drop-fail.rs:28 :25
58
+ --> $DIR/const-drop-fail.rs:29 :25
59
59
|
60
60
LL | impl<T: ~const A> const Drop for ConstDropImplWithBounds<T> {
61
61
| ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^
62
62
= note: 1 redundant requirement hidden
63
63
= note: required for `ConstDropImplWithBounds<NonTrivialDrop>` to implement `~const Destruct`
64
64
note: required by a bound in `check`
65
- --> $DIR/const-drop-fail.rs:34 :19
65
+ --> $DIR/const-drop-fail.rs:35 :19
66
66
|
67
67
LL | const fn check<T: ~const Destruct>(_: T) {}
68
68
| ^^^^^^^^^^^^^^^ required by this bound in `check`
0 commit comments