2019-12-24 05:20:36 -06:00
|
|
|
error[E0080]: could not evaluate static initializer
|
2020-06-11 21:31:49 -05:00
|
|
|
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
2020-09-18 20:49:11 -05:00
|
|
|
LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| calling non-const function `<Vec<i32> as Drop>::drop`
|
2022-11-15 09:44:33 -06:00
|
|
|
| inside `std::ptr::drop_in_place::<Vec<i32>> - shim(Some(Vec<i32>))`
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2022-09-21 06:05:20 -05:00
|
|
|
::: $DIR/drop.rs:17:1
|
2019-12-24 05:20:36 -06:00
|
|
|
|
|
2020-09-18 20:49:11 -05:00
|
|
|
LL | };
|
2022-11-15 09:44:33 -06:00
|
|
|
| - inside `TEST_BAD`
|
2019-12-24 05:20:36 -06:00
|
|
|
|
2020-05-03 07:23:08 -05:00
|
|
|
warning: skipping const checks
|
|
|
|
|
|
|
|
|
help: skipping check that does not even have a feature gate
|
2022-09-21 06:05:20 -05:00
|
|
|
--> $DIR/drop.rs:16:9
|
2020-05-03 07:23:08 -05:00
|
|
|
|
|
|
|
|
LL | let _v: Vec<i32> = Vec::new();
|
|
|
|
| ^^
|
|
|
|
|
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`.
|