]> git.proxmox.com Git - rustc.git/blame - tests/ui/consts/const-block-const-bound.stderr
New upstream version 1.71.1+dfsg1
[rustc.git] / tests / ui / consts / const-block-const-bound.stderr
CommitLineData
5e7ed085 1error[E0277]: can't drop `UnconstDrop` in const contexts
49aad941 2 --> $DIR/const-block-const-bound.rs:16:9
5099ac24
FG
3 |
4LL | f(UnconstDrop);
353b0b11 5 | ^^^^^^^^^^^^^^ the trait `~const Destruct` is not implemented for `UnconstDrop`
5099ac24 6 |
5e7ed085 7 = note: the trait bound `UnconstDrop: ~const Destruct` is not satisfied
5099ac24
FG
8help: consider borrowing here
9 |
353b0b11
FG
10LL | &f(UnconstDrop);
11 | +
12LL | &mut f(UnconstDrop);
13 | ++++
5099ac24 14
49aad941 15error: aborting due to previous error
5099ac24
FG
16
17For more information about this error, try `rustc --explain E0277`.