about summary refs log tree commit diff
path: root/tests/ui/consts/const-pattern-rewrite-error-32086.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-pattern-rewrite-error-32086.stderr')
-rw-r--r--tests/ui/consts/const-pattern-rewrite-error-32086.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/consts/const-pattern-rewrite-error-32086.stderr b/tests/ui/consts/const-pattern-rewrite-error-32086.stderr
new file mode 100644
index 00000000000..47616b06632
--- /dev/null
+++ b/tests/ui/consts/const-pattern-rewrite-error-32086.stderr
@@ -0,0 +1,21 @@
+error[E0532]: expected tuple struct or tuple variant, found constant `C`
+  --> $DIR/const-pattern-rewrite-error-32086.rs:6:9
+   |
+LL | struct S(u8);
+   | ------------- similarly named tuple struct `S` defined here
+...
+LL |     let C(a) = S(11);
+   |         ^ help: a tuple struct with a similar name exists: `S`
+
+error[E0532]: expected tuple struct or tuple variant, found constant `C`
+  --> $DIR/const-pattern-rewrite-error-32086.rs:7:9
+   |
+LL | struct S(u8);
+   | ------------- similarly named tuple struct `S` defined here
+...
+LL |     let C(..) = S(11);
+   |         ^ help: a tuple struct with a similar name exists: `S`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0532`.