File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2299,6 +2299,21 @@ extern "rust-intrinsic" {
2299
2299
```
2300
2300
"## ,
2301
2301
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
+
2302
2317
E0220 : r##"
2303
2318
You used an associated type which isn't defined in the trait.
2304
2319
Erroneous code example:
@@ -3250,7 +3265,6 @@ register_diagnostics! {
3250
3265
// E0209, // builtin traits can only be implemented on structs or enums
3251
3266
E0212 , // cannot extract an associated type from a higher-ranked trait bound
3252
3267
// E0213, // associated types are not accepted in this context
3253
- E0214 , // parenthesized parameters may only be used with a trait
3254
3268
// E0215, // angle-bracket notation is not stable with `Fn`
3255
3269
// E0216, // parenthetical notation is only stable with `Fn`
3256
3270
// E0217, // ambiguous associated type, defined in multiple supertraits
You can’t perform that action at this time.
0 commit comments