summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-type-mismatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-type-mismatch.stderr')
-rw-r--r--src/test/ui/consts/const-type-mismatch.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-type-mismatch.stderr b/src/test/ui/consts/const-type-mismatch.stderr
new file mode 100644
index 000000000..17bb27d4b
--- /dev/null
+++ b/src/test/ui/consts/const-type-mismatch.stderr
@@ -0,0 +1,15 @@
+error[E0308]: mismatched types
+ --> $DIR/const-type-mismatch.rs:4:21
+ |
+LL | const TWELVE: u16 = TEN + 2;
+ | ^^^^^^^ expected `u16`, found `u8`
+
+error[E0308]: mismatched types
+ --> $DIR/const-type-mismatch.rs:9:27
+ |
+LL | const ALSO_TEN: u16 = TEN;
+ | ^^^ expected `u16`, found `u8`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.