@@ -46,6 +46,23 @@ enum variant, one of the fields was not provided. Each field should be specified
4646exactly once.
4747"## ,
4848
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+
4966E0081 : r##"
5067Enum discriminants are used to differentiate enum variants stored in memory.
5168This 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:
119136```
120137enum Empty {}
121138```
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+ ```
122153"##
123154
124155}
@@ -149,7 +180,6 @@ register_diagnostics! {
149180 E0060 ,
150181 E0061 ,
151182 E0066 ,
152- E0067 ,
153183 E0068 ,
154184 E0069 ,
155185 E0070 ,
@@ -189,8 +219,6 @@ register_diagnostics! {
189219 E0128 ,
190220 E0129 ,
191221 E0130 ,
192- E0131 ,
193- E0132 ,
194222 E0141 ,
195223 E0159 ,
196224 E0163 ,
0 commit comments