File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
branches/beta/src/librustc_typeck Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
23
23
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
24
24
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
- refs/heads/beta: 67c11b0146d875260ffd7d44184221e42c01186c
26
+ refs/heads/beta: e52b94e259b7f416ec584164e6803dcbf038b200
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
28
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
Original file line number Diff line number Diff line change @@ -384,13 +384,15 @@ E0044: r##"
384
384
You can't use type parameters on foreign items. Example of erroneous code:
385
385
386
386
```
387
- extern { fn some_func<T>(); }
387
+ extern { fn some_func<T>(x: T ); }
388
388
```
389
389
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:
391
392
392
393
```
393
- extern { fn some_func(); }
394
+ extern { fn some_func_i32(x: i32); }
395
+ extern { fn some_func_i64(x: i64); }
394
396
```
395
397
396
398
E0045: r##"
@@ -754,7 +756,7 @@ Example of erroneous code:
754
756
enum Foo { f };
755
757
756
758
let u = Foo::f { value: 0i32 }; // error: Foo:f isn't a structure!
757
- // or even more simple :
759
+ // or even simpler :
758
760
let u = t { random_field: 0i32 }; //error: t isn't a structure!
759
761
```
760
762
@@ -772,7 +774,7 @@ enum Foo {
772
774
773
775
fn main() {
774
776
let u = Foo::f(Inner { value: 0i32 });
775
- // or even more simple :
777
+ // or even simpler :
776
778
let t = Inner { value: 0i32 };
777
779
}
778
780
```
@@ -1533,9 +1535,6 @@ For more information see the [opt-in builtin traits RFC](https://github.com/rust
1533
1535
}
1534
1536
1535
1537
register_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
1539
1538
E0068 ,
1540
1539
E0074 ,
1541
1540
E0075 ,
You can’t perform that action at this time.
0 commit comments