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