diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2016-10-28 00:30:23 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2016-11-09 16:19:49 -0800 |
| commit | 43aed325aacfbe592fef2acffcf4f888155fb9bf (patch) | |
| tree | 70af501f414e1fe58a3afe829464bb513c6cf6f1 /src/test/run-pass/thinlto | |
| parent | da2ce2276873242a101f205537e7ce297d68f8dd (diff) | |
| download | rust-43aed325aacfbe592fef2acffcf4f888155fb9bf.tar.gz rust-43aed325aacfbe592fef2acffcf4f888155fb9bf.zip | |
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
```
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
