]> git.lizzy.rs Git - rust.git/blob - tests/ui/usize-generic-argument-parent.stderr
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / usize-generic-argument-parent.stderr
1 error[E0109]: const arguments are not allowed on builtin type `usize`
2   --> $DIR/usize-generic-argument-parent.rs:2:18
3    |
4 LL |     let x: usize<foo>;
5    |            ----- ^^^ const argument not allowed
6    |            |
7    |            not allowed on builtin type `usize`
8    |
9 help: primitive type `usize` doesn't have generic parameters
10    |
11 LL -     let x: usize<foo>;
12 LL +     let x: usize;
13    |
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0109`.