rust/tests/ui/usize-generic-argument-parent.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
510 B
Plaintext
Raw Normal View History

2022-06-19 18:21:01 -07:00
error[E0109]: const arguments are not allowed on builtin type `usize`
--> $DIR/usize-generic-argument-parent.rs:2:18
|
LL | let x: usize<foo>;
2022-06-01 16:55:30 -07:00
| ----- ^^^ const argument not allowed
| |
2022-06-19 18:21:01 -07:00
| not allowed on builtin type `usize`
|
2022-06-02 14:06:54 -07:00
help: primitive type `usize` doesn't have generic parameters
|
LL - let x: usize<foo>;
LL + let x: usize;
2022-06-08 20:34:57 +03:00
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0109`.