1 error[E0658]: mutable references are not allowed in constant functions
2 --> $DIR/ranged_ints2_const.rs:14:13
7 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
8 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
10 error[E0658]: mutable references are not allowed in constant functions
11 --> $DIR/ranged_ints2_const.rs:21:22
13 LL | let y = unsafe { &mut x.0 };
16 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
17 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
19 error[E0658]: mutable references are not allowed in constant functions
20 --> $DIR/ranged_ints2_const.rs:27:22
22 LL | unsafe { let y = &mut x.0; }
25 = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
26 = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
28 error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block
29 --> $DIR/ranged_ints2_const.rs:14:13
31 LL | let y = &mut x.0;
32 | ^^^^^^^^ mutation of layout constrained field
34 = note: mutating layout constrained fields cannot statically be checked for valid values
36 error: aborting due to 4 previous errors
38 Some errors have detailed explanations: E0133, E0658.
39 For more information about an error, try `rustc --explain E0133`.