fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0723]: mutable references in const fn are unstable 2 --> $DIR/ranged_ints2_const.rs:11:9 3 | 4LL | let y = &mut x.0; 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 10error[E0723]: mutable references in const fn are unstable 11 --> $DIR/ranged_ints2_const.rs:18:9 12 | 13LL | let y = unsafe { &mut x.0 }; 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 19error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block 20 --> $DIR/ranged_ints2_const.rs:11:13 21 | 22LL | let y = &mut x.0; 23 | ^^^^^^^^ mutation of layout constrained field 24 | 25 = note: mutating layout constrained fields cannot statically be checked for valid values 26 27error: aborting due to 3 previous errors 28 29Some errors have detailed explanations: E0133, E0723. 30For more information about an error, try `rustc --explain E0133`.