]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-block-const-bound.stderr
Rollup merge of #92814 - lcnr:unused-fixme, r=Mark-Simulacrum
[rust.git] / src / test / ui / consts / const-block-const-bound.stderr
1 error[E0277]: the trait bound `UnconstDrop: Drop` is not satisfied
2   --> $DIR/const-block-const-bound.rs:14:11
3    |
4 LL |         f(UnconstDrop);
5    |         - ^^^^^^^^^^^ the trait `Drop` is not implemented for `UnconstDrop`
6    |         |
7    |         required by a bound introduced by this call
8    |
9 note: required by a bound in `f`
10   --> $DIR/const-block-const-bound.rs:4:15
11    |
12 LL | const fn f<T: ~const Drop>(x: T) {}
13    |               ^^^^^^^^^^^ required by this bound in `f`
14 help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
15    |
16 LL | fn main() where UnconstDrop: Drop {
17    |           +++++++++++++++++++++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.