]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/drop.stderr
Rollup merge of #84083 - ltratt:threadid_doc_tweak, r=dtolnay
[rust.git] / src / test / ui / consts / miri_unleashed / drop.stderr
1 error[E0080]: could not evaluate static initializer
2   --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
3    |
4 LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    | |
7    | calling non-const function `<Vec<i32> as Drop>::drop`
8    | inside `std::ptr::drop_in_place::<Vec<i32>> - shim(Some(Vec<i32>))` at $SRC_DIR/core/src/ptr/mod.rs:LL:COL
9    |
10   ::: $DIR/drop.rs:18:1
11    |
12 LL | };
13    | - inside `TEST_BAD` at $DIR/drop.rs:18:1
14
15 warning: skipping const checks
16    |
17 help: skipping check that does not even have a feature gate
18   --> $DIR/drop.rs:17:9
19    |
20 LL |     let _v: Vec<i32> = Vec::new();
21    |         ^^
22
23 error: aborting due to previous error; 1 warning emitted
24
25 For more information about this error, try `rustc --explain E0080`.