about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-11 05:55:04 -0800
committerGitHub <noreply@github.com>2016-11-11 05:55:04 -0800
commitba2e892249d51cce0980e95e0b4daabb7710ad82 (patch)
treecccda5050f72382601cc98c141ab6e2b260dd813 /src/test/run-pass/thinlto
parent4da129d98419733bb408141ca53610bb77368cf0 (diff)
parent43aed325aacfbe592fef2acffcf4f888155fb9bf (diff)
downloadrust-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