]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/usize-generic-argument-parent.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / usize-generic-argument-parent.stderr
index f1eae3b500840f4d8cdc56a1bd29e98c1987fe04..131c476aa55c0c2ba808c918af3feb00f023c690 100644 (file)
@@ -1,8 +1,16 @@
-error[E0109]: const arguments are not allowed for this type
+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
+   |            ----- ^^^ 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