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
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
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
|
|
|
|
2023-11-21 15:44:16 +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`.
|