mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
18 lines
547 B
Plaintext
18 lines
547 B
Plaintext
error[E0277]: can't drop `UnconstDrop` in const contexts
|
|
--> $DIR/const-block-const-bound.rs:16:9
|
|
|
|
|
LL | f(UnconstDrop);
|
|
| ^^^^^^^^^^^^^^ the trait `~const Destruct` is not implemented for `UnconstDrop`
|
|
|
|
|
= note: the trait bound `UnconstDrop: ~const Destruct` is not satisfied
|
|
help: consider borrowing here
|
|
|
|
|
LL | &f(UnconstDrop);
|
|
| +
|
|
LL | &mut f(UnconstDrop);
|
|
| ++++
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|