summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/match-ill-type2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/match-ill-type2.stderr')
-rw-r--r--src/test/ui/match/match-ill-type2.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/match/match-ill-type2.stderr b/src/test/ui/match/match-ill-type2.stderr
new file mode 100644
index 000000000..5078f03d6
--- /dev/null
+++ b/src/test/ui/match/match-ill-type2.stderr
@@ -0,0 +1,12 @@
+error[E0308]: mismatched types
+ --> $DIR/match-ill-type2.rs:4:9
+ |
+LL | match 1i32 {
+ | ---- this expression has type `i32`
+LL | 1i32 => 1,
+LL | 2u32 => 1,
+ | ^^^^ expected `i32`, found `u32`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.