about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Ozdemir <aozdemir@hmc.edu>2017-05-17 20:29:58 -0700
committerAlex Ozdemir <aozdemir@hmc.edu>2017-06-15 08:21:17 -0700
commita82890e67ba01057b95d7e2f910ae91226505a87 (patch)
tree074cc431da6d4f2c133dd4d836174e90477260b8 /src/liballoc
parent258ae6dd9b1a8ac97986852fc9f00f7687004ccb (diff)
downloadrust-a82890e67ba01057b95d7e2f910ae91226505a87.tar.gz
rust-a82890e67ba01057b95d7e2f910ae91226505a87.zip
Clearer Error Message for Duplicate Definition
Clearer use of the error message and span labels to communicate
duplicaiton defitions/imports.

New error format:

```
error[E0428]: the name `Foo` is defined twice
 --> example.rs:2:1
  |
1 | trait Foo { }
  | ------------- previous definition of the trait `Foo` here
2 | struct Foo { }
  | ^^^^^^^^^^^^^^ `Foo` redefined here
  = note: `Foo` must be defined only once in the type namespace of this module

error: aborting due to previous error
```
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions