]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | warning: skipping const checks |
ba9703b0 | 2 | --> $DIR/drop.rs:17:9 |
dfeec247 XL |
3 | | |
4 | LL | let _v: Vec<i32> = Vec::new(); | |
5 | | ^^ | |
6 | ||
7 | error[E0080]: could not evaluate static initializer | |
8 | --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL | |
9 | | | |
10 | LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) { | |
11 | LL | | // Code here does not matter - this is replaced by the | |
12 | LL | | // real drop glue by the compiler. | |
13 | LL | | drop_in_place(to_drop) | |
14 | LL | | } | |
ba9703b0 XL |
15 | | | ^ |
16 | | | | | |
17 | | |_calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop` | |
18 | | 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 | |
dfeec247 | 19 | | |
ba9703b0 | 20 | ::: $DIR/drop.rs:19:1 |
dfeec247 XL |
21 | | |
22 | LL | }; | |
ba9703b0 | 23 | | - inside `TEST_BAD` at $DIR/drop.rs:19:1 |
dfeec247 | 24 | |
ba9703b0 | 25 | error: aborting due to previous error; 1 warning emitted |
dfeec247 XL |
26 | |
27 | For more information about this error, try `rustc --explain E0080`. |