about summary refs log tree commit diff
path: root/src/test/ui/codemap_tests
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-06-12 18:01:48 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-06-19 19:38:37 +0200
commit2d4df5b53e92513ddd250be545ff7c015135451b (patch)
tree88f05e26284de6b1fdc66621d44916efbf95bec1 /src/test/ui/codemap_tests
parent7fd4b52b1b83195594ef88c193fdd409b68f19ef (diff)
downloadrust-2d4df5b53e92513ddd250be545ff7c015135451b.tar.gz
rust-2d4df5b53e92513ddd250be545ff7c015135451b.zip
NLL: Updates to diagnostic output in `test/ui`.
Diffstat (limited to 'src/test/ui/codemap_tests')
-rw-r--r--src/test/ui/codemap_tests/huge_multispan_highlight.nll.stderr3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/codemap_tests/huge_multispan_highlight.nll.stderr b/src/test/ui/codemap_tests/huge_multispan_highlight.nll.stderr
index 4526616e488..da0b201f5d4 100644
--- a/src/test/ui/codemap_tests/huge_multispan_highlight.nll.stderr
+++ b/src/test/ui/codemap_tests/huge_multispan_highlight.nll.stderr
@@ -1,6 +1,9 @@
 error[E0596]: cannot borrow immutable item `x` as mutable
   --> $DIR/huge_multispan_highlight.rs:100:13
    |
+LL |     let x = "foo";
+   |         - help: consider changing this to be mutable: `mut x`
+...
 LL |     let y = &mut x; //~ ERROR cannot borrow
    |             ^^^^^^ cannot borrow as mutable