aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/array_len_suffix.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/array_len_suffix.stderr')
-rw-r--r--tests/ui/array_len_suffix.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/array_len_suffix.stderr b/tests/ui/array_len_suffix.stderr
new file mode 100644
index 00000000..b72fc022
--- /dev/null
+++ b/tests/ui/array_len_suffix.stderr
@@ -0,0 +1,10 @@
+error[E0308]: mismatched types
+ --> $DIR/array_len_suffix.rs:4:32
+ |
+4 | fn array() -> [String; 12u16];
+ | ^^^^^ expected `usize`, found `u16`
+ |
+help: change the type of the numeric literal from `u16` to `usize`
+ |
+4 | fn array() -> [String; 12usize];
+ | ^^^^^^^