summaryrefslogtreecommitdiffstats
path: root/tests/ui/mismatched_types/issue-106182.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/mismatched_types/issue-106182.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/mismatched_types/issue-106182.stderr b/tests/ui/mismatched_types/issue-106182.stderr
new file mode 100644
index 000000000..ac3ab8e98
--- /dev/null
+++ b/tests/ui/mismatched_types/issue-106182.stderr
@@ -0,0 +1,18 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-106182.rs:7:12
+ |
+LL | match x {
+ | - this expression has type `&_S`
+LL | _S(& (mut _y), _v) => {
+ | ^^^^^^^^^^ expected `u32`, found reference
+ |
+ = note: expected type `u32`
+ found reference `&_`
+help: consider removing `&` from the pattern
+ |
+LL | _S(mut _y, _v) => {
+ | ~~~~~~
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.