about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2016-10-28 00:30:23 -0700
committerEsteban Küber <esteban@kuber.com.ar>2016-11-09 16:19:49 -0800
commit43aed325aacfbe592fef2acffcf4f888155fb9bf (patch)
tree70af501f414e1fe58a3afe829464bb513c6cf6f1 /src/test/run-pass/thinlto
parentda2ce2276873242a101f205537e7ce297d68f8dd (diff)
downloadrust-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