@@ -678,9 +678,10 @@ struct Foo {
678678}
679679
680680fn 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+ };
684685}
685686```
686687
@@ -3002,44 +3003,44 @@ https://doc.rust-lang.org/std/marker/struct.PhantomData.html
30023003}
30033004
30043005register_diagnostics ! {
3005- E0068 ,
3006- E0085 ,
3007- E0086 ,
3006+ // E0068,
3007+ // E0085,
3008+ // E0086,
30083009 E0090 ,
30093010 E0103 , // @GuillaumeGomez: I was unable to get this error, try your best!
30103011 E0104 ,
30113012 E0118 ,
30123013 E0122 ,
3013- E0123 ,
3014- E0127 ,
3015- E0129 ,
3016- E0141 ,
3014+ // E0123,
3015+ // E0127,
3016+ // E0129,
3017+ // E0141,
30173018// E0159, // use of trait `{}` as struct constructor
30183019 E0163 ,
30193020 E0164 ,
30203021 E0167 ,
30213022// E0168,
3022- E0173 , // manual implementations of unboxed closure traits are experimental
3023+ // E0173, // manual implementations of unboxed closure traits are experimental
30233024 E0174 , // explicit use of unboxed closure methods are experimental
30243025 E0182 ,
30253026 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
30303031 E0196 , // cannot determine a type for this closure
30313032 E0203 , // type parameter has more than one relaxed default bound,
30323033 // and only one is supported
30333034 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
30353036 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
30373038 E0214 , // parenthesized parameters may only be used with a trait
30383039// E0215, // angle-bracket notation is not stable with `Fn`
30393040// 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
30433044// E0222, // Error code E0045 (variadic function must have C calling
30443045 // convention) duplicate
30453046 E0224 , // at least one non-builtin train is required for an object type
@@ -3049,20 +3050,20 @@ register_diagnostics! {
30493050 E0229 , // associated type bindings are not allowed here
30503051 E0230 , // there is no type parameter on trait
30513052 E0231 , // only named substitution parameters are allowed
3052- E0233 ,
3053- E0234 ,
3053+ // E0233,
3054+ // E0234,
30543055// E0235, // structure constructor specifies a structure of type but
30553056 E0236 , // no lang item for range syntax
30563057 E0237 , // no lang item for range syntax
30573058 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,
30613062 E0242 , // internal error looking up a definition
30623063 E0245 , // not a trait
3063- E0246 , // invalid recursive type
3064+ // E0246, // invalid recursive type
30643065 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
30663067 E0320 , // recursive overflow during dropck
30673068 E0321 , // extended coherence rules for defaulted traits violated
30683069 E0328 , // cannot implement Unsize explicitly
0 commit comments