rust/src/test/ui/consts/miri_unleashed/drop.stderr

25 lines
719 B
Plaintext
Raw Normal View History

2019-12-24 05:20:36 -06:00
warning: skipping const checks
--> $DIR/drop.rs:21:9
2019-12-24 05:20:36 -06:00
|
LL | let _v: Vec<i32> = Vec::new();
| ^^
error[E0080]: could not evaluate static initializer
--> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
|
2020-01-18 05:24:54 -06:00
LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
2019-12-24 05:20:36 -06:00
LL | | // Code here does not matter - this is replaced by the
LL | | // real drop glue by the compiler.
2020-01-18 05:24:54 -06:00
LL | | drop_in_place(to_drop)
2019-12-24 05:20:36 -06:00
LL | | }
| |_^ calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
|
::: $DIR/drop.rs:23:1
2019-12-24 05:20:36 -06:00
|
LL | };
2020-03-30 13:26:48 -05:00
| - inside `TEST_BAD` at $DIR/drop.rs:23:1
2019-12-24 05:20:36 -06:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.