mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
16 lines
592 B
Plaintext
16 lines
592 B
Plaintext
error[E0277]: the trait bound `ConstDropImplWithBounds<NonTrivialDrop>: const Destruct` is not satisfied
|
|
--> $DIR/const-drop-fail-2.rs:31:23
|
|
|
|
|
LL | const _: () = check::<ConstDropImplWithBounds<NonTrivialDrop>>(
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: required by a bound in `check`
|
|
--> $DIR/const-drop-fail-2.rs:21:19
|
|
|
|
|
LL | const fn check<T: ~const Destruct>(_: T) {}
|
|
| ^^^^^^ required by this bound in `check`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|