2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `Foo` is ambiguous
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:11: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
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of multiple potential import sources
|
2018-11-10 09:58:37 -06:00
|
|
|
note: `Foo` could refer to the enum defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:10: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-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:5: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
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `std` is ambiguous
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:18: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
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of multiple potential import sources
|
2018-11-10 09:58:37 -06:00
|
|
|
note: `std` could refer to the enum defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:17:5
|
2018-11-10 09:58:37 -06:00
|
|
|
|
|
|
|
|
LL | enum std {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
note: `std` could also refer to the struct defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:7: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
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `std` is ambiguous
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:18:9
|
2018-08-16 07:59:33 -05:00
|
|
|
|
|
|
|
|
LL | use std as foo;
|
2018-11-10 09:58:37 -06:00
|
|
|
| ^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of multiple potential import sources
|
2018-11-10 09:58:37 -06:00
|
|
|
note: `std` could refer to the function defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:16: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-25 09:56:47 -06:00
|
|
|
--> $DIR/block-scoped-shadow.rs:7: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`.
|