• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0659]: `A` is ambiguous
2  --> $DIR/issue-107563-ambiguous-glob-reexports.rs:25:24
3   |
4LL |     pub use ambiguous::A;
5   |                        ^ ambiguous name
6   |
7   = note: ambiguous because of multiple glob imports of a name in the same module
8note: `A` could refer to the type alias imported here
9  --> $DIR/issue-107563-ambiguous-glob-reexports.rs:19:13
10   |
11LL |     pub use self::m1::*;
12   |             ^^^^^^^^^^^
13   = help: consider adding an explicit import of `A` to disambiguate
14note: `A` could also refer to the type alias imported here
15  --> $DIR/issue-107563-ambiguous-glob-reexports.rs:21:13
16   |
17LL |     pub use self::m2::*;
18   |             ^^^^^^^^^^^
19   = help: consider adding an explicit import of `A` to disambiguate
20
21error: ambiguous glob re-exports
22  --> $DIR/issue-107563-ambiguous-glob-reexports.rs:12:9
23   |
24LL | pub use foo::*;
25   |         ^^^^^^ the name `X` in the type namespace is first re-exported here
26LL |
27LL | pub use bar::*;
28   |         ------ but the name `X` in the type namespace is also re-exported here
29   |
30note: the lint level is defined here
31  --> $DIR/issue-107563-ambiguous-glob-reexports.rs:1:9
32   |
33LL | #![deny(ambiguous_glob_reexports)]
34   |         ^^^^^^^^^^^^^^^^^^^^^^^^
35
36error: ambiguous glob re-exports
37  --> $DIR/issue-107563-ambiguous-glob-reexports.rs:19:13
38   |
39LL |     pub use self::m1::*;
40   |             ^^^^^^^^^^^ the name `A` in the type namespace is first re-exported here
41LL |
42LL |     pub use self::m2::*;
43   |             ----------- but the name `A` in the type namespace is also re-exported here
44
45error: aborting due to 3 previous errors
46
47For more information about this error, try `rustc --explain E0659`.
48