summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0308-4.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0308-4.stderr')
-rw-r--r--src/test/ui/error-codes/E0308-4.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0308-4.stderr b/src/test/ui/error-codes/E0308-4.stderr
new file mode 100644
index 000000000..39c067637
--- /dev/null
+++ b/src/test/ui/error-codes/E0308-4.stderr
@@ -0,0 +1,13 @@
+error[E0308]: mismatched types
+ --> $DIR/E0308-4.rs:4:15
+ |
+LL | match x {
+ | - this expression has type `u8`
+LL | 0u8..=3i8 => (),
+ | --- ^^^ expected `u8`, found `i8`
+ | |
+ | this is of type `u8`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.