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-20 01:21:01 +00: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 23:55:30 +00:00
| ----- ^^^ const argument not allowed
| |
2022-06-20 01:21:01 +00:00
| not allowed on builtin type `usize`
|
2022-06-02 21:06:54 +00:00
help: primitive type `usize` doesn't have generic parameters
|
LL - let x: usize<foo>;
LL + let x: usize;
2022-06-08 17:34:57 +00:00
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0109`.