This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/test/ui/rfc-2632-const-trait-impl Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
99error[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+ ...
1215LL | NonTrivialDrop,
1316 | ^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `NonTrivialDrop`
1417 |
@@ -21,6 +24,9 @@ LL | const fn check<T: ~const Drop>(_: T) {}
2124error[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+ ...
2430LL | ConstImplWithDropGlue(NonTrivialDrop),
2531 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `ConstImplWithDropGlue`
2632 |
@@ -45,6 +51,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
4551error[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+ ...
4857LL | ConstDropImplWithBounds::<NonTrivialDrop>(PhantomData),
4958 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `A` is not implemented for `NonTrivialDrop`
5059 |
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
99error[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+ ...
1215LL | NonTrivialDrop,
1316 | ^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `NonTrivialDrop`
1417 |
@@ -21,6 +24,9 @@ LL | const fn check<T: ~const Drop>(_: T) {}
2124error[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+ ...
2430LL | ConstImplWithDropGlue(NonTrivialDrop),
2531 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Drop` is not implemented for `ConstImplWithDropGlue`
2632 |
@@ -45,6 +51,9 @@ LL | struct ConstDropImplWithBounds<T: ~const A>(PhantomData<T>);
4551error[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+ ...
4857LL | ConstDropImplWithBounds::<NonTrivialDrop>(PhantomData),
4958 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `A` is not implemented for `NonTrivialDrop`
5059 |
You can’t perform that action at this time.
0 commit comments