2019-12-24 05:20:36 -06:00
|
|
|
warning: skipping const checks
|
2020-04-29 02:53:22 -05:00
|
|
|
--> $DIR/drop.rs:16:1
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
2020-04-29 02:53:22 -05:00
|
|
|
LL | / static TEST_BAD: () = {
|
|
|
|
LL | | let _v: Vec<i32> = Vec::new();
|
|
|
|
LL | | };
|
|
|
|
| |__^
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
|
|
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 | | }
|
2020-03-31 10:46:26 -05:00
|
|
|
| | ^
|
|
|
|
| | |
|
|
|
|
| |_calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
|
|
|
|
| inside `std::intrinsics::drop_in_place::<std::vec::Vec<i32>> - shim(Some(std::vec::Vec<i32>))` at $SRC_DIR/libcore/ptr/mod.rs:LL:COL
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
2020-04-29 02:53:22 -05:00
|
|
|
::: $DIR/drop.rs:18:1
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
|
|
|
LL | };
|
2020-04-29 02:53:22 -05:00
|
|
|
| - inside `TEST_BAD` at $DIR/drop.rs:18:1
|
2019-12-24 05:20:36 -06:00
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|