]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/drop_box.stderr
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / consts / drop_box.stderr
1 error[E0493]: destructor of `Box<T>` cannot be evaluated at compile-time
2   --> $DIR/drop_box.rs:1:15
3    |
4 LL | const fn f<T>(_: Box<T>) {}
5    |               ^           - value is dropped here
6    |               |
7    |               the destructor for this type cannot be evaluated in constant functions
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0493`.