File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2299,6 +2299,21 @@ extern "rust-intrinsic" {
22992299```
23002300"## ,
23012301
2302+ E0214 : r##"
2303+ A generic type was described using parentheses rather than angle brackets. For
2304+ example:
2305+
2306+ ```
2307+ fn main() {
2308+ let v: Vec(&str) = vec!["foo"];
2309+ }
2310+ ```
2311+
2312+ This is not currently supported: `v` should be defined as `Vec<&str>`.
2313+ Parentheses are currently only used with generic types when defining parameters
2314+ for `Fn`-family traits.
2315+ "## ,
2316+
23022317E0220 : r##"
23032318You used an associated type which isn't defined in the trait.
23042319Erroneous code example:
@@ -3219,7 +3234,6 @@ register_diagnostics! {
32193234// E0209, // builtin traits can only be implemented on structs or enums
32203235 E0212 , // cannot extract an associated type from a higher-ranked trait bound
32213236// E0213, // associated types are not accepted in this context
3222- E0214 , // parenthesized parameters may only be used with a trait
32233237// E0215, // angle-bracket notation is not stable with `Fn`
32243238// E0216, // parenthetical notation is only stable with `Fn`
32253239// E0217, // ambiguous associated type, defined in multiple supertraits
You can’t perform that action at this time.
0 commit comments