Skip to content

Commit c2e22e8

Browse files
---
yaml --- r: 235655 b: refs/heads/stable c: c13295b h: refs/heads/master i: 235653: f3fe8de 235651: 187bcc5 235647: 701de42 v: v3
1 parent f366632 commit c2e22e8

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 95811546e6dabc1946a155c70a4635b9d76dcb8d
32+
refs/heads/stable: c13295bbc3c887581828583ad8c09be8a21227c8
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_resolve/diagnostics.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,24 @@ impl Foo for Bar {
380380
```
381381
"##,
382382

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+
383401
}
384402

385403
register_diagnostics! {
@@ -415,7 +433,6 @@ register_diagnostics! {
415433
E0425, // unresolved name
416434
E0426, // use of undeclared label
417435
E0427, // cannot use `ref` binding mode with ...
418-
E0428, // duplicate definition of ...
419436
E0429, // `self` imports are only allowed within a { } list
420437
E0430, // `self` import can only appear once in the list
421438
E0431, // `self` import can only appear in an import list with a non-empty

0 commit comments

Comments
 (0)