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