rust/tests/ui/proc-macro/issue-66286.stderr

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

16 lines
496 B
Plaintext
Raw Permalink Normal View History

2020-12-04 23:02:56 +00:00
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
2024-10-31 10:39:45 +00:00
--> $DIR/issue-66286.rs:8:26
2020-12-04 23:02:56 +00:00
|
2024-10-31 10:39:45 +00:00
LL | pub extern "C" fn foo(_: Vec(u32)) -> u32 {
| ^^^^^^^^ only `Fn` traits may use parentheses
2022-06-15 01:50:34 +00:00
|
help: use angle brackets instead
|
LL - pub extern "C" fn foo(_: Vec(u32)) -> u32 {
LL + pub extern "C" fn foo(_: Vec<u32>) -> u32 {
|
2020-12-04 23:02:56 +00:00
error: aborting due to 1 previous error
2020-12-04 23:02:56 +00:00
For more information about this error, try `rustc --explain E0214`.