2020-09-23 23:05:59 -05:00
|
|
|
error[E0658]: mutable references are not allowed in constant functions
|
2021-06-27 07:59:38 -05:00
|
|
|
--> $DIR/ranged_ints2_const.rs:14:13
|
2018-11-06 10:43:32 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let y = &mut x.0;
|
2020-09-29 19:31:04 -05:00
|
|
|
| ^^^^^^^^
|
2019-02-05 14:27:44 -06:00
|
|
|
|
|
2020-09-23 23:05:59 -05:00
|
|
|
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
|
|
|
|
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
|
2018-11-06 10:43:32 -06:00
|
|
|
|
2020-09-23 23:05:59 -05:00
|
|
|
error[E0658]: mutable references are not allowed in constant functions
|
2021-06-27 07:59:38 -05:00
|
|
|
--> $DIR/ranged_ints2_const.rs:21:22
|
2018-11-06 10:43:32 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let y = unsafe { &mut x.0 };
|
2020-09-29 19:31:04 -05:00
|
|
|
| ^^^^^^^^
|
2019-02-05 14:27:44 -06:00
|
|
|
|
|
2020-09-23 23:05:59 -05:00
|
|
|
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
|
|
|
|
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
|
2018-11-06 10:43:32 -06:00
|
|
|
|
2021-01-03 12:46:20 -06:00
|
|
|
error[E0658]: mutable references are not allowed in constant functions
|
2021-06-27 07:59:38 -05:00
|
|
|
--> $DIR/ranged_ints2_const.rs:27:22
|
2021-01-03 12:46:20 -06:00
|
|
|
|
|
|
|
|
LL | unsafe { let y = &mut x.0; }
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
|
|
|
|
= help: add `#![feature(const_mut_refs)]` 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
|
2021-06-27 07:59:38 -05:00
|
|
|
--> $DIR/ranged_ints2_const.rs:14:13
|
2018-11-06 10:43:32 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let y = &mut x.0;
|
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
|
|
|
|
|
2021-01-03 12:46:20 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2018-11-06 10:43:32 -06:00
|
|
|
|
2020-09-23 23:05:59 -05:00
|
|
|
Some errors have detailed explanations: E0133, E0658.
|
2019-02-05 14:27:44 -06:00
|
|
|
For more information about an error, try `rustc --explain E0133`.
|