summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mut/mut-ref.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/mut/mut-ref.stderr')
-rw-r--r--src/test/ui/mut/mut-ref.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/mut/mut-ref.stderr b/src/test/ui/mut/mut-ref.stderr
new file mode 100644
index 000000000..e6d4901aa
--- /dev/null
+++ b/src/test/ui/mut/mut-ref.stderr
@@ -0,0 +1,8 @@
+error: the order of `mut` and `ref` is incorrect
+ --> $DIR/mut-ref.rs:2:9
+ |
+LL | let mut ref x = 10;
+ | ^^^^^^^ help: try switching the order: `ref mut`
+
+error: aborting due to previous error
+