2018-02-07 21:35:35 -06:00
|
|
|
error[E0254]: the name `alloc` is defined multiple times
|
|
|
|
--> $DIR/E0254.rs:22:5
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | extern crate alloc;
|
2018-02-07 21:35:35 -06:00
|
|
|
| ------------------- previous import of the extern crate `alloc` here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | use foo::alloc;
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^ `alloc` reimported here
|
|
|
|
|
|
|
|
|
= note: `alloc` must be defined only once in the type namespace of this module
|
|
|
|
help: You can use `as` to change the binding name of the import
|
|
|
|
|
|
|
|
|
22 | use foo::alloc as other_alloc;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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 E0254"
|