2019-01-20 02:45:38 -08:00
|
|
|
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
|
2019-09-04 17:36:01 -07:00
|
|
|
--> $DIR/E0214.rs:2:12
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let v: Vec(&str) = vec!["foo"];
|
2022-06-15 02:50:34 +01:00
|
|
|
| ^^^^^^^^^ only `Fn` traits may use parentheses
|
|
|
|
|
|
|
|
|
help: use angle brackets instead
|
|
|
|
|
|
|
|
|
LL | let v: Vec<&str> = vec!["foo"];
|
|
|
|
| ~ ~
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2019-01-19 18:44:20 -08:00
|
|
|
error: aborting due to previous error
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2019-01-19 18:44:20 -08:00
|
|
|
For more information about this error, try `rustc --explain E0214`.
|