mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 07:36:28 +00:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
error[E0277]: the trait bound `NonTrivialDrop: const Destruct` is not satisfied
|
|
--> $DIR/const-drop-fail.rs:32:5
|
|
|
|
|
LL | const _: () = check($exp);
|
|
| ----- required by a bound introduced by this call
|
|
...
|
|
LL | NonTrivialDrop,
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
note: required by a bound in `check`
|
|
--> $DIR/const-drop-fail.rs:23:19
|
|
|
|
|
LL | const fn check<T: ~const Destruct>(_: T) {}
|
|
| ^^^^^^ required by this bound in `check`
|
|
|
|
error[E0277]: the trait bound `NonTrivialDrop: const Destruct` is not satisfied
|
|
--> $DIR/const-drop-fail.rs:34:5
|
|
|
|
|
LL | const _: () = check($exp);
|
|
| ----- required by a bound introduced by this call
|
|
...
|
|
LL | ConstImplWithDropGlue(NonTrivialDrop),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: required by a bound in `check`
|
|
--> $DIR/const-drop-fail.rs:23:19
|
|
|
|
|
LL | const fn check<T: ~const Destruct>(_: T) {}
|
|
| ^^^^^^ required by this bound in `check`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|