]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/mutable_borrow.stderr
normalize use of backticks/lowercase in compiler messages for librustc_mir
[rust.git] / src / test / ui / consts / min_const_fn / mutable_borrow.stderr
1 error[E0723]: mutable references in const fn are unstable
2   --> $DIR/mutable_borrow.rs:3:9
3    |
4 LL |     let b = &mut a;
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
10 error[E0723]: mutable references in const fn are unstable
11   --> $DIR/mutable_borrow.rs:12:13
12    |
13 LL |         let b = &mut a;
14    |             ^
15    |
16    = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
17    = help: add `#![feature(const_fn)]` to the crate attributes to enable
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0723`.