2018-11-10 09:58:37 -06:00
|
|
|
error[E0659]: `Foo` is ambiguous (name vs any other name during import resolution)
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:21:9
|
2018-08-13 10:24:08 -05:00
|
|
|
|
|
|
|
|
LL | use Foo::*;
|
2018-11-10 09:58:37 -06:00
|
|
|
| ^^^ ambiguous name
|
2018-08-13 10:24:08 -05:00
|
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
note: `Foo` could refer to the enum defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:20:5
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | enum Foo { A, B }
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
note: `Foo` could also refer to the enum defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:15:1
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | enum Foo {}
|
|
|
|
| ^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::Foo` to refer to this enum unambiguously
|
2018-08-13 10:24:08 -05:00
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:28:9
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
|
|
|
LL | use std as foo;
|
2018-11-10 09:58:37 -06:00
|
|
|
| ^^^ ambiguous name
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
note: `std` could refer to the enum defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:27:5
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | enum std {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: `std` could also refer to the struct defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:17:1
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | struct std;
|
|
|
|
| ^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::std` to refer to this struct unambiguously
|
2018-08-16 07:59:33 -05:00
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
error[E0659]: `std` is ambiguous (name vs any other name during import resolution)
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:28:9
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
|
|
|
LL | use std as foo;
|
2018-11-10 09:58:37 -06:00
|
|
|
| ^^^ ambiguous name
|
|
|
|
|
|
|
|
|
note: `std` could refer to the function defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:26:5
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
LL | fn std() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: `std` could also refer to the unit struct defined here
|
2018-12-16 21:21:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:17:1
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | struct std;
|
|
|
|
| ^^^^^^^^^^^
|
2018-11-25 07:08:43 -06:00
|
|
|
= help: use `crate::std` to refer to this unit struct unambiguously
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-08-13 10:24:08 -05:00
|
|
|
|
2018-11-10 09:58:37 -06:00
|
|
|
For more information about this error, try `rustc --explain E0659`.
|