]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.stderr
rustc: pass Option<&Substs> and Namespace around in ty::item_path.
[rust.git] / src / test / ui / consts / miri_unleashed / feature-gate-unleash_the_miri_inside_of_you.stderr
1 error[E0493]: destructors cannot be evaluated at compile-time
2   --> $DIR/feature-gate-unleash_the_miri_inside_of_you.rs:11:20
3    |
4 LL |     const F: u32 = (U::X, 42).1;
5    |                    ^^^^^^^^^^ constants cannot evaluate destructors
6
7 error: `std::vec::Vec::<T>::new` is not yet stable as a const fn
8   --> $DIR/feature-gate-unleash_the_miri_inside_of_you.rs:18:25
9    |
10 LL |     const X: Vec<u32> = Vec::new();
11    |                         ^^^^^^^^^^
12    |
13    = help: add `#![feature(const_vec_new)]` to the crate attributes to enable
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0493`.