Skip to content

Commit 0a4540b

Browse files
committed
fix rebase
1 parent 4951e3a commit 0a4540b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.precise.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
99
error[E0277]: the trait bound `NonTrivialDrop: Drop` is not satisfied
1010
--> $DIR/const-drop-fail.rs:45:5
1111
|
12+
LL | const _: () = check($exp);
13+
| ----- required by a bound introduced by this call
14+
...
1215
LL | NonTrivialDrop,
1316
| ^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `NonTrivialDrop`
1417
|
@@ -21,6 +24,9 @@ LL | const fn check<T: ~const Drop>(_: T) {}
2124
error[E0277]: the trait bound `ConstImplWithDropGlue: Drop` is not satisfied
2225
--> $DIR/const-drop-fail.rs:47:5
2326
|
27+
LL | const _: () = check($exp);
28+
| ----- required by a bound introduced by this call
29+
...
2430
LL | ConstImplWithDropGlue(NonTrivialDrop),
2531
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `ConstImplWithDropGlue`
2632
|
@@ -45,6 +51,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
4551
error[E0277]: the trait bound `NonTrivialDrop: A` is not satisfied
4652
--> $DIR/const-drop-fail.rs:49:5
4753
|
54+
LL | const _: () = check($exp);
55+
| ----- required by a bound introduced by this call
56+
...
4857
LL | ConstDropImplWithBounds::<NonTrivialDrop>(PhantomData),
4958
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `A` is not implemented for `NonTrivialDrop`
5059
|

src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.stock.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
99
error[E0277]: the trait bound `NonTrivialDrop: Drop` is not satisfied
1010
--> $DIR/const-drop-fail.rs:45:5
1111
|
12+
LL | const _: () = check($exp);
13+
| ----- required by a bound introduced by this call
14+
...
1215
LL | NonTrivialDrop,
1316
| ^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `NonTrivialDrop`
1417
|
@@ -21,6 +24,9 @@ LL | const fn check<T: ~const Drop>(_: T) {}
2124
error[E0277]: the trait bound `ConstImplWithDropGlue: Drop` is not satisfied
2225
--> $DIR/const-drop-fail.rs:47:5
2326
|
27+
LL | const _: () = check($exp);
28+
| ----- required by a bound introduced by this call
29+
...
2430
LL | ConstImplWithDropGlue(NonTrivialDrop),
2531
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `ConstImplWithDropGlue`
2632
|
@@ -45,6 +51,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
4551
error[E0277]: the trait bound `NonTrivialDrop: A` is not satisfied
4652
--> $DIR/const-drop-fail.rs:49:5
4753
|
54+
LL | const _: () = check($exp);
55+
| ----- required by a bound introduced by this call
56+
...
4857
LL | ConstDropImplWithBounds::<NonTrivialDrop>(PhantomData),
4958
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `A` is not implemented for `NonTrivialDrop`
5059
|

0 commit comments

Comments
 (0)