rust/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.stderr

22 lines
754 B
Plaintext
Raw Normal View History

error[E0594]: cannot assign to immutable borrowed content `*n`
2018-12-25 09:56:47 -06:00
--> $DIR/explicit-mut.rs:7:13
|
2018-02-22 18:42:32 -06:00
LL | *n += 1; //~ ERROR cannot assign to immutable
| ^^^^^^^ cannot borrow as mutable
error[E0594]: cannot assign to immutable borrowed content `*n`
2018-12-25 09:56:47 -06:00
--> $DIR/explicit-mut.rs:15:13
|
2018-02-22 18:42:32 -06:00
LL | *n += 1; //~ ERROR cannot assign to immutable
| ^^^^^^^ cannot borrow as mutable
error[E0594]: cannot assign to immutable borrowed content `*n`
2018-12-25 09:56:47 -06:00
--> $DIR/explicit-mut.rs:23:13
|
2018-02-22 18:42:32 -06:00
LL | *n += 1; //~ ERROR cannot assign to immutable
| ^^^^^^^ cannot borrow as mutable
error: aborting due to 3 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0594`.