We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf84eb5 commit 94fcda0Copy full SHA for 94fcda0
src/librustc_error_codes/error_codes/E0214.md
@@ -1,12 +1,17 @@
1
A generic type was described using parentheses rather than angle brackets.
2
-For example:
+
3
+Erroneous code example:
4
5
```compile_fail,E0214
-fn main() {
6
- let v: Vec(&str) = vec!["foo"];
7
-}
+let v: Vec(&str) = vec!["foo"];
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.
13
+The previous code example fixed:
14
15
+```
16
+let v: Vec<&str> = vec!["foo"];
17
0 commit comments