]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-conflict-item-vs-import.stderr
Rollup merge of #97812 - TaKO8Ki:suggest-to-swap-struct-and-trait, r=estebank
[rust.git] / src / test / ui / resolve / resolve-conflict-item-vs-import.stderr
1 error[E0255]: the name `transmute` is defined multiple times
2   --> $DIR/resolve-conflict-item-vs-import.rs:3:1
3    |
4 LL | use std::mem::transmute;
5    |     ------------------- previous import of the value `transmute` here
6 LL | 
7 LL | fn transmute() {}
8    | ^^^^^^^^^^^^^^ `transmute` redefined here
9    |
10    = note: `transmute` must be defined only once in the value namespace of this module
11 help: you can use `as` to change the binding name of the import
12    |
13 LL | use std::mem::transmute as other_transmute;
14    |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0255`.