rust/tests/ui/error-codes/E0214.stderr

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

15 lines
431 B
Plaintext
Raw Normal View History

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