We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ee18c9 commit 1474d2aCopy full SHA for 1474d2a
src/librustc_error_codes/error_codes/E0128.md
@@ -1,4 +1,5 @@
1
-Type parameter defaults can only use parameters that occur before them.
+A type parameter with default value is using forward declared identifier.
2
+
3
Erroneous code example:
4
5
```compile_fail,E0128
@@ -7,11 +8,11 @@ struct Foo<T = U, U = ()> {
7
8
field2: U,
9
}
10
// error: type parameters with a default cannot use forward declared
-// identifiers
11
+// identifiers
12
```
13
-Since type parameters are evaluated in-order, you may be able to fix this issue
14
-by doing:
+Type parameter defaults can only use parameters that occur before them. Since
15
+type parameters are evaluated in-order, this issue could be fixed by doing:
16
17
18
struct Foo<U = (), T = U> {
0 commit comments