@@ -46,6 +46,23 @@ enum variant, one of the fields was not provided. Each field should be specified
46
46
exactly once.
47
47
"## ,
48
48
49
+ E0067 : r##"
50
+ The left-hand side of an assignment operator must be an lvalue expression. An
51
+ lvalue expression represents a memory location and includes item paths (ie,
52
+ namespaced variables), dereferences, indexing expressions, and field references.
53
+
54
+ ```
55
+ use std::collections::LinkedList;
56
+
57
+ // Good
58
+ let mut list = LinkedList::new();
59
+
60
+
61
+ // Bad: assignment to non-lvalue expression
62
+ LinkedList::new() += 1;
63
+ ```
64
+ "## ,
65
+
49
66
E0081 : r##"
50
67
Enum discriminants are used to differentiate enum variants stored in memory.
51
68
This error indicates that the same value was used for two or more variants,
@@ -119,6 +136,20 @@ construct an instance of the following type using only safe code:
119
136
```
120
137
enum Empty {}
121
138
```
139
+ "## ,
140
+
141
+ E0131 : r##"
142
+ It is not possible to define `main` with type parameters, or even with function
143
+ parameters. When `main` is present, it must take no arguments and return `()`.
144
+ "## ,
145
+
146
+ E0132 : r##"
147
+ It is not possible to declare type parameters on a function that has the `start`
148
+ attribute. Such a function must have the following type signature:
149
+
150
+ ```
151
+ fn(isize, *const *const u8) -> isize
152
+ ```
122
153
"##
123
154
124
155
}
@@ -149,7 +180,6 @@ register_diagnostics! {
149
180
E0060 ,
150
181
E0061 ,
151
182
E0066 ,
152
- E0067 ,
153
183
E0068 ,
154
184
E0069 ,
155
185
E0070 ,
@@ -189,8 +219,6 @@ register_diagnostics! {
189
219
E0128 ,
190
220
E0129 ,
191
221
E0130 ,
192
- E0131 ,
193
- E0132 ,
194
222
E0141 ,
195
223
E0159 ,
196
224
E0163 ,
0 commit comments