]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr
normalize use of backticks/lowercase in compiler messages for librustc_mir
[rust.git] / src / test / ui / consts / min_const_fn / bad_const_fn_body_ice.stderr
1 error[E0723]: heap allocations are not allowed in const fn
2   --> $DIR/bad_const_fn_body_ice.rs:2:5
3    |
4 LL |     vec![1, 2, 3]
5    |     ^^^^^^^^^^^^^
6    |
7    = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
8    = help: add `#![feature(const_fn)]` to the crate attributes to enable
9    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0723`.