]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0255.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0255.stderr
1 error[E0255]: the name `foo` is defined multiple times
2   --> $DIR/E0255.rs:3:1
3    |
4 LL | use bar::foo;
5    |     -------- previous import of the value `foo` here
6 LL |
7 LL | fn foo() {}
8    | ^^^^^^^^ `foo` redefined here
9    |
10    = note: `foo` 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 bar::foo as other_foo;
14    |     ~~~~~~~~~~~~~~~~~~~~~
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0255`.