File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
branches/tmp/src/librustc_resolve Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
26
refs/heads/beta: c8bab9d06a179028a0d5129aa62f09d694d9cc49
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
- refs/heads/tmp: 95811546e6dabc1946a155c70a4635b9d76dcb8d
28
+ refs/heads/tmp: c13295bbc3c887581828583ad8c09be8a21227c8
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
Original file line number Diff line number Diff line change @@ -380,6 +380,24 @@ impl Foo for Bar {
380
380
```
381
381
"## ,
382
382
383
+ E0428 : r##"
384
+ A type or module has been defined more than once. Example of erroneous
385
+ code:
386
+
387
+ ```
388
+ struct Bar;
389
+ struct Bar; // error: duplicate definition of value `Bar`
390
+ ```
391
+
392
+ Please verify you didn't mispelled the type/module's name or remove the
393
+ duplicated one. Example:
394
+
395
+ ```
396
+ struct Bar;
397
+ struct Bar2; // ok!
398
+ ```
399
+ "## ,
400
+
383
401
}
384
402
385
403
register_diagnostics ! {
@@ -415,7 +433,6 @@ register_diagnostics! {
415
433
E0425 , // unresolved name
416
434
E0426 , // use of undeclared label
417
435
E0427 , // cannot use `ref` binding mode with ...
418
- E0428 , // duplicate definition of ...
419
436
E0429 , // `self` imports are only allowed within a { } list
420
437
E0430 , // `self` import can only appear once in the list
421
438
E0431 , // `self` import can only appear in an import list with a non-empty
You can’t perform that action at this time.
0 commit comments