File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl Test {
379379
380380fn main() {
381381 let x = Test;
382- let v = &[0i32 ];
382+ let v = &[0 ];
383383
384384 x.method::<i32, i32>(v); // error: only one type parameter is expected!
385385}
@@ -398,7 +398,7 @@ impl Test {
398398
399399fn main() {
400400 let x = Test;
401- let v = &[0i32 ];
401+ let v = &[0 ];
402402
403403 x.method::<i32>(v); // OK, we're good!
404404}
@@ -901,7 +901,7 @@ Example of erroneous code:
901901```compile_fail
902902enum Foo { FirstValue(i32) };
903903
904- let u = Foo::FirstValue { value: 0i32 }; // error: Foo::FirstValue
904+ let u = Foo::FirstValue { value: 0 }; // error: Foo::FirstValue
905905 // isn't a structure!
906906// or even simpler, if the name doesn't refer to a structure at all.
907907let t = u32 { value: 4 }; // error: `u32` does not name a structure.
You can’t perform that action at this time.
0 commit comments