2020-09-23 23:05:59 -05:00
|
|
|
error[E0658]: mutable references are not allowed in constant functions
|
2020-09-29 16:58:00 -05:00
|
|
|
--> $DIR/mutable_borrow.rs:3:13
|
2018-11-23 08:30:10 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let b = &mut a;
|
2020-09-29 16:58:00 -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-23 08:30:10 -06:00
|
|
|
|
2020-09-23 23:05:59 -05:00
|
|
|
error[E0658]: mutable references are not allowed in constant functions
|
2020-09-29 16:58:00 -05:00
|
|
|
--> $DIR/mutable_borrow.rs:12:17
|
2018-11-23 08:30:10 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let b = &mut a;
|
2020-09-29 16:58:00 -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-23 08:30:10 -06:00
|
|
|
|
2018-11-26 06:08:55 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2018-11-23 08:30:10 -06:00
|
|
|
|
2020-09-23 23:05:59 -05:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|