diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/error-codes/E0596.stderr (renamed from src/test/ui/error-codes/E0596.stderr) | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0596.stderr b/tests/ui/error-codes/E0596.stderr index 79bc258f1..3f9aebcc8 100644 --- a/src/test/ui/error-codes/E0596.stderr +++ b/tests/ui/error-codes/E0596.stderr @@ -1,10 +1,13 @@ error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable --> $DIR/E0596.rs:3:13 | -LL | let x = 1; - | - help: consider changing this to be mutable: `mut x` LL | let y = &mut x; | ^^^^^^ cannot borrow as mutable + | +help: consider changing this to be mutable + | +LL | let mut x = 1; + | +++ error: aborting due to previous error |