2019-02-05 14:27:44 -06:00
|
|
|
error[E0723]: mutable references in const fn are unstable (see issue #57563)
|
2018-12-30 12:20:53 -06:00
|
|
|
--> $DIR/ranged_ints2_const.rs:11:9
|
2018-11-06 10:43:32 -06:00
|
|
|
|
|
2018-12-30 12:20:53 -06:00
|
|
|
LL | let y = &mut x.0; //~ ERROR references in const fn are unstable
|
|
|
|
| ^
|
2019-02-05 14:27:44 -06:00
|
|
|
|
|
|
|
|
= help: add #![feature(const_fn)] to the crate attributes to enable
|
2018-11-06 10:43:32 -06:00
|
|
|
|
2019-02-05 14:27:44 -06:00
|
|
|
error[E0723]: mutable references in const fn are unstable (see issue #57563)
|
2018-12-30 12:20:53 -06:00
|
|
|
--> $DIR/ranged_ints2_const.rs:18:9
|
2018-11-06 10:43:32 -06:00
|
|
|
|
|
2018-12-30 12:20:53 -06:00
|
|
|
LL | let y = unsafe { &mut x.0 }; //~ ERROR mutable references in const fn are unstable
|
|
|
|
| ^
|
2019-02-05 14:27:44 -06:00
|
|
|
|
|
|
|
|
= help: add #![feature(const_fn)] to the crate attributes to enable
|
2018-11-06 10:43:32 -06:00
|
|
|
|
|
|
|
error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block
|
|
|
|
--> $DIR/ranged_ints2_const.rs:11:13
|
|
|
|
|
|
2018-12-30 12:20:53 -06:00
|
|
|
LL | let y = &mut x.0; //~ ERROR references in const fn are unstable
|
2018-11-06 10:43:32 -06:00
|
|
|
| ^^^^^^^^ mutation of layout constrained field
|
|
|
|
|
|
|
|
|
= note: mutating layout constrained fields cannot statically be checked for valid values
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-02-05 14:27:44 -06:00
|
|
|
Some errors occurred: E0133, E0723.
|
|
|
|
For more information about an error, try `rustc --explain E0133`.
|