]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0214.md
Rollup merge of #64856 - jonhoo:format-temporaries, r=sfackler
[rust.git] / src / librustc_error_codes / error_codes / E0214.md
1 A generic type was described using parentheses rather than angle brackets.
2 For example:
3
4 ```compile_fail,E0214
5 fn main() {
6     let v: Vec(&str) = vec!["foo"];
7 }
8 ```
9
10 This is not currently supported: `v` should be defined as `Vec<&str>`.
11 Parentheses are currently only used with generic types when defining parameters
12 for `Fn`-family traits.