]>
Commit | Line | Data |
---|---|---|
5e7ed085 | 1 | error[E0277]: can't drop `UnconstDrop` in const contexts |
49aad941 | 2 | --> $DIR/const-block-const-bound.rs:16:9 |
5099ac24 FG |
3 | | |
4 | LL | 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 |
8 | help: consider borrowing here |
9 | | | |
353b0b11 FG |
10 | LL | &f(UnconstDrop); |
11 | | + | |
12 | LL | &mut f(UnconstDrop); | |
13 | | ++++ | |
5099ac24 | 14 | |
49aad941 | 15 | error: aborting due to previous error |
5099ac24 FG |
16 | |
17 | For more information about this error, try `rustc --explain E0277`. |