File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl Test {
379
379
380
380
fn main() {
381
381
let x = Test;
382
- let v = &[0i32 ];
382
+ let v = &[0 ];
383
383
384
384
x.method::<i32, i32>(v); // error: only one type parameter is expected!
385
385
}
@@ -398,7 +398,7 @@ impl Test {
398
398
399
399
fn main() {
400
400
let x = Test;
401
- let v = &[0i32 ];
401
+ let v = &[0 ];
402
402
403
403
x.method::<i32>(v); // OK, we're good!
404
404
}
@@ -901,7 +901,7 @@ Example of erroneous code:
901
901
```compile_fail
902
902
enum Foo { FirstValue(i32) };
903
903
904
- let u = Foo::FirstValue { value: 0i32 }; // error: Foo::FirstValue
904
+ let u = Foo::FirstValue { value: 0 }; // error: Foo::FirstValue
905
905
// isn't a structure!
906
906
// or even simpler, if the name doesn't refer to a structure at all.
907
907
let t = u32 { value: 4 }; // error: `u32` does not name a structure.
You can’t perform that action at this time.
0 commit comments