File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -384,13 +384,15 @@ E0044: r##"
384384You can't use type parameters on foreign items. Example of erroneous code:
385385
386386```
387- extern { fn some_func<T>(); }
387+ extern { fn some_func<T>(x: T ); }
388388```
389389
390- Just remove the type parameter to make this code works:
390+ To fix this, replace the type parameter with the specializations that you
391+ need:
391392
392393```
393- extern { fn some_func(); }
394+ extern { fn some_func_i32(x: i32); }
395+ extern { fn some_func_i64(x: i64); }
394396```
395397
396398E0045: r##"
@@ -754,7 +756,7 @@ Example of erroneous code:
754756enum Foo { f };
755757
756758let u = Foo::f { value: 0i32 }; // error: Foo:f isn't a structure!
757- // or even more simple :
759+ // or even simpler :
758760let u = t { random_field: 0i32 }; //error: t isn't a structure!
759761```
760762
@@ -772,7 +774,7 @@ enum Foo {
772774
773775fn main() {
774776 let u = Foo::f(Inner { value: 0i32 });
775- // or even more simple :
777+ // or even simpler :
776778 let t = Inner { value: 0i32 };
777779}
778780```
@@ -1533,9 +1535,6 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
15331535}
15341536
15351537register_diagnostics ! {
1536- E0034 , // multiple applicable methods in scope
1537- E0035 , // does not take type parameters
1538- E0036 , // incorrect number of type parameters given for this method
15391538 E0068 ,
15401539 E0074 ,
15411540 E0075 ,
You can’t perform that action at this time.
0 commit comments