@@ -678,9 +678,10 @@ struct Foo {
678
678
}
679
679
680
680
fn main() {
681
- let x = Foo { x: 0,
682
- x: 0, // error: field `x` specified more than once
683
- };
681
+ let x = Foo {
682
+ x: 0,
683
+ x: 0, // error: field `x` specified more than once
684
+ };
684
685
}
685
686
```
686
687
@@ -3002,44 +3003,44 @@ https://doc.rust-lang.org/std/marker/struct.PhantomData.html
3002
3003
}
3003
3004
3004
3005
register_diagnostics ! {
3005
- E0068 ,
3006
- E0085 ,
3007
- E0086 ,
3006
+ // E0068,
3007
+ // E0085,
3008
+ // E0086,
3008
3009
E0090 ,
3009
3010
E0103 , // @GuillaumeGomez: I was unable to get this error, try your best!
3010
3011
E0104 ,
3011
3012
E0118 ,
3012
3013
E0122 ,
3013
- E0123 ,
3014
- E0127 ,
3015
- E0129 ,
3016
- E0141 ,
3014
+ // E0123,
3015
+ // E0127,
3016
+ // E0129,
3017
+ // E0141,
3017
3018
// E0159, // use of trait `{}` as struct constructor
3018
3019
E0163 ,
3019
3020
E0164 ,
3020
3021
E0167 ,
3021
3022
// E0168,
3022
- E0173 , // manual implementations of unboxed closure traits are experimental
3023
+ // E0173, // manual implementations of unboxed closure traits are experimental
3023
3024
E0174 , // explicit use of unboxed closure methods are experimental
3024
3025
E0182 ,
3025
3026
E0183 ,
3026
- E0187 , // can't infer the kind of the closure
3027
- E0188 , // can not cast a immutable reference to a mutable pointer
3028
- E0189 , // deprecated: can only cast a boxed pointer to a boxed object
3029
- E0190 , // deprecated: can only cast a &-pointer to an &-object
3027
+ // E0187, // can't infer the kind of the closure
3028
+ // E0188, // can not cast a immutable reference to a mutable pointer
3029
+ // E0189, // deprecated: can only cast a boxed pointer to a boxed object
3030
+ // E0190, // deprecated: can only cast a &-pointer to an &-object
3030
3031
E0196 , // cannot determine a type for this closure
3031
3032
E0203 , // type parameter has more than one relaxed default bound,
3032
3033
// and only one is supported
3033
3034
E0208 ,
3034
- E0209 , // builtin traits can only be implemented on structs or enums
3035
+ // E0209, // builtin traits can only be implemented on structs or enums
3035
3036
E0212 , // cannot extract an associated type from a higher-ranked trait bound
3036
- E0213 , // associated types are not accepted in this context
3037
+ // E0213, // associated types are not accepted in this context
3037
3038
E0214 , // parenthesized parameters may only be used with a trait
3038
3039
// E0215, // angle-bracket notation is not stable with `Fn`
3039
3040
// E0216, // parenthetical notation is only stable with `Fn`
3040
- E0217 , // ambiguous associated type, defined in multiple supertraits
3041
- E0218 , // no associated type defined
3042
- E0219 , // associated type defined in higher-ranked supertrait
3041
+ // E0217, // ambiguous associated type, defined in multiple supertraits
3042
+ // E0218, // no associated type defined
3043
+ // E0219, // associated type defined in higher-ranked supertrait
3043
3044
// E0222, // Error code E0045 (variadic function must have C calling
3044
3045
// convention) duplicate
3045
3046
E0224 , // at least one non-builtin train is required for an object type
@@ -3049,20 +3050,20 @@ register_diagnostics! {
3049
3050
E0229 , // associated type bindings are not allowed here
3050
3051
E0230 , // there is no type parameter on trait
3051
3052
E0231 , // only named substitution parameters are allowed
3052
- E0233 ,
3053
- E0234 ,
3053
+ // E0233,
3054
+ // E0234,
3054
3055
// E0235, // structure constructor specifies a structure of type but
3055
3056
E0236 , // no lang item for range syntax
3056
3057
E0237 , // no lang item for range syntax
3057
3058
E0238 , // parenthesized parameters may only be used with a trait
3058
- E0239 , // `next` method of `Iterator` trait has unexpected type
3059
- E0240 ,
3060
- E0241 ,
3059
+ // E0239, // `next` method of `Iterator` trait has unexpected type
3060
+ // E0240,
3061
+ // E0241,
3061
3062
E0242 , // internal error looking up a definition
3062
3063
E0245 , // not a trait
3063
- E0246 , // invalid recursive type
3064
+ // E0246, // invalid recursive type
3064
3065
E0247 , // found module name used as a type
3065
- E0319 , // trait impls for defaulted traits allowed just for structs/enums
3066
+ // E0319, // trait impls for defaulted traits allowed just for structs/enums
3066
3067
E0320 , // recursive overflow during dropck
3067
3068
E0321 , // extended coherence rules for defaulted traits violated
3068
3069
E0328 , // cannot implement Unsize explicitly
0 commit comments