2018-11-10 09:58:37 -06:00
|
|
|
error[E0659]: `Foo` is ambiguous (name vs any other name during import resolution)
|
2018-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:19: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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:18: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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:13:1
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | enum Foo {}
|
|
|
|
| ^^^^^^^^^^^
|
2018-11-11 10:46:04 -06:00
|
|
|
= help: use `self::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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:26: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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:25:5
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | enum std {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: `std` could also refer to the struct defined here
|
2018-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:15:1
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | struct std;
|
|
|
|
| ^^^^^^^^^^^
|
2018-11-11 10:46:04 -06:00
|
|
|
= help: use `self::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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:26: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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:24: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-11-11 18:58:39 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:15:1
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | struct std;
|
|
|
|
| ^^^^^^^^^^^
|
2018-11-11 10:46:04 -06:00
|
|
|
= help: use `self::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`.
|