diff options
| author | bors <bors@rust-lang.org> | 2016-11-11 05:55:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-11 05:55:04 -0800 |
| commit | ba2e892249d51cce0980e95e0b4daabb7710ad82 (patch) | |
| tree | cccda5050f72382601cc98c141ab6e2b260dd813 /src/test/run-pass/thinlto | |
| parent | 4da129d98419733bb408141ca53610bb77368cf0 (diff) | |
| parent | 43aed325aacfbe592fef2acffcf4f888155fb9bf (diff) | |
| download | rust-ba2e892249d51cce0980e95e0b4daabb7710ad82.tar.gz rust-ba2e892249d51cce0980e95e0b4daabb7710ad82.zip | |
Auto merge of #37447 - estebank:non-duplicate-definition-error, r=nrc
Show one error for duplicated type definitions
For the following code:
``` rustc
struct Bar;
struct Bar;
fn main () {
}
```
show
``` nocode
error[E0428]: a type named `Bar` has already been defined in this module
--> src/test/compile-fail/E0428.rs:12:1
|
11 | struct Bar;
| ----------- previous definition of `Bar` here
12 | struct Bar;
| ^^^^^^^^^^^
error: aborting due to previous error
```
instead of
``` nocode
error[E0428]: a type named `Bar` has already been defined in this module
--> src/test/compile-fail/E0428.rs:12:1
|
11 | struct Bar;
| ----------- previous definition of `Bar` here
12 | struct Bar;
| ^^^^^^^^^^^
error[E0428]: a value named `Bar` has already been defined in this module
--> src/test/compile-fail/E0428.rs:12:1
|
11 | struct Bar;
| ----------- previous definition of `Bar` here
12 | struct Bar;
| ^^^^^^^^^^^
error: aborting due to 2 previous errors
```
Fixes #35767.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
