rust/src/test/ui/resolve-conflict-item-vs-import.stderr
Andy Russell 043d4615f2
use correct casing for rename suggestions
If the original name is uppercase, use camel case. Otherwise, use snake
case.
2018-01-28 20:48:54 -05:00

18 lines
596 B
Plaintext

error[E0255]: the name `transmute` is defined multiple times
--> $DIR/resolve-conflict-item-vs-import.rs:13:1
|
11 | use std::mem::transmute;
| ------------------- previous import of the value `transmute` here
12 |
13 | fn transmute() {}
| ^^^^^^^^^^^^^^ `transmute` redefined here
|
= note: `transmute` must be defined only once in the value namespace of this module
help: You can use `as` to change the binding name of the import
|
11 | use std::mem::transmute as other_transmute;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error