]>
Commit | Line | Data |
---|---|---|
9fa01778 | 1 | error[E0723]: mutable references in const fn are unstable (see issue #57563) |
0731742a XL |
2 | --> $DIR/ranged_ints2_const.rs:11:9 |
3 | | | |
4 | LL | let y = &mut x.0; //~ ERROR references in const fn are unstable | |
5 | | ^ | |
9fa01778 XL |
6 | | |
7 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
0731742a | 8 | |
9fa01778 | 9 | error[E0723]: mutable references in const fn are unstable (see issue #57563) |
0731742a XL |
10 | --> $DIR/ranged_ints2_const.rs:18:9 |
11 | | | |
12 | LL | let y = unsafe { &mut x.0 }; //~ ERROR mutable references in const fn are unstable | |
13 | | ^ | |
9fa01778 XL |
14 | | |
15 | = help: add #![feature(const_fn)] to the crate attributes to enable | |
0731742a XL |
16 | |
17 | error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block | |
18 | --> $DIR/ranged_ints2_const.rs:11:13 | |
19 | | | |
20 | LL | let y = &mut x.0; //~ ERROR references in const fn are unstable | |
21 | | ^^^^^^^^ mutation of layout constrained field | |
22 | | | |
23 | = note: mutating layout constrained fields cannot statically be checked for valid values | |
24 | ||
25 | error: aborting due to 3 previous errors | |
26 | ||
9fa01778 XL |
27 | Some errors occurred: E0133, E0723. |
28 | For more information about an error, try `rustc --explain E0133`. |