summaryrefslogtreecommitdiffstats
path: root/src/test/ui/usize-generic-argument-parent.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/usize-generic-argument-parent.stderr')
-rw-r--r--src/test/ui/usize-generic-argument-parent.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/usize-generic-argument-parent.stderr b/src/test/ui/usize-generic-argument-parent.stderr
new file mode 100644
index 000000000..131c476aa
--- /dev/null
+++ b/src/test/ui/usize-generic-argument-parent.stderr
@@ -0,0 +1,17 @@
+error[E0109]: const arguments are not allowed on builtin type `usize`
+ --> $DIR/usize-generic-argument-parent.rs:2:18
+ |
+LL | let x: usize<foo>;
+ | ----- ^^^ const argument not allowed
+ | |
+ | not allowed on builtin type `usize`
+ |
+help: primitive type `usize` doesn't have generic parameters
+ |
+LL - let x: usize<foo>;
+LL + let x: usize;
+ |
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0109`.