rust/src/test/ui/resolve-conflict-item-vs-import.stderr

19 lines
674 B
Plaintext
Raw Normal View History

error[E0255]: the name `transmute` is defined multiple times
--> $DIR/resolve-conflict-item-vs-import.rs:13:1
|
2018-02-22 18:42:32 -06:00
LL | use std::mem::transmute;
| ------------------- previous import of the value `transmute` here
2018-02-24 17:01:39 -06:00
LL |
2018-02-22 18:42:32 -06:00
LL | 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
|
2018-02-24 17:01:39 -06:00
LL | use std::mem::transmute as other_transmute;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0255"