summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-block-const-bound.stderr
blob: caf24e7afcf456d4ad1bc8d499771c9fdcfde4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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`.