blob: 6c5e99d8769049dd7358447a61e70393cba96203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error: compilation successful
--> $DIR/E0503.rs:11:1
|
LL | / fn main() { #![rustc_error] // rust-lang/rust#49855
LL | | let mut value = 3;
LL | | let _borrow = &mut value;
LL | | let _sum = value + 1; //~ ERROR E0503
LL | | }
| |_^
error: aborting due to previous error
|