summaryrefslogtreecommitdiffstats
path: root/tests/ui/usize-generic-argument-parent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/usize-generic-argument-parent.rs')
-rw-r--r--tests/ui/usize-generic-argument-parent.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/usize-generic-argument-parent.rs b/tests/ui/usize-generic-argument-parent.rs
new file mode 100644
index 000000000..4ab80d944
--- /dev/null
+++ b/tests/ui/usize-generic-argument-parent.rs
@@ -0,0 +1,5 @@
+fn foo() {
+ let x: usize<foo>; //~ ERROR const arguments are not allowed on builtin type `usize`
+}
+
+fn main() {}