summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-1362.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-1362.stderr')
-rw-r--r--src/test/ui/issues/issue-1362.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-1362.stderr b/src/test/ui/issues/issue-1362.stderr
new file mode 100644
index 000000000..babbb6e51
--- /dev/null
+++ b/src/test/ui/issues/issue-1362.stderr
@@ -0,0 +1,16 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-1362.rs:4:16
+ |
+LL | let x: u32 = 20i32;
+ | --- ^^^^^ expected `u32`, found `i32`
+ | |
+ | expected due to this
+ |
+help: change the type of the numeric literal from `i32` to `u32`
+ |
+LL | let x: u32 = 20u32;
+ | ~~~
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.