2017-12-10 22:47:55 +03:00
|
|
|
error[E0255]: the name `transmute` is defined multiple times
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/resolve-conflict-item-vs-import.rs:13:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | use std::mem::transmute;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ------------------- previous import of the value `transmute` here
|
2018-02-25 02:01:39 +03:00
|
|
|
LL |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn transmute() {}
|
2017-12-17 22:44:32 -08:00
|
|
|
| ^^^^^^^^^^^^^^ `transmute` redefined here
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
|
= 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-25 02:01:39 +03:00
|
|
|
LL | use std::mem::transmute as other_transmute;
|
2018-01-28 20:48:54 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0255`.
|