1- error[E0659] : `max` is ambiguous
1+ error: `max` is ambiguous
22 --> $DIR/issue-114682-2.rs:6:28
33 |
44LL | use issue_114682_2_extern::max;
55 | ^^^ ambiguous name
66 |
7+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8+ = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
79 = note: ambiguous because of multiple glob imports of a name in the same module
810note: `max` could refer to the type alias defined here
911 --> $DIR/auxiliary/issue-114682-2-extern.rs:17:9
@@ -15,13 +17,16 @@ note: `max` could also refer to the module defined here
1517 |
1618LL | pub use self::d::*;
1719 | ^^^^^^^
20+ = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default
1821
19- error[E0659] : `max` is ambiguous
20- --> $DIR/issue-114682-2.rs:8 :33
22+ error: `max` is ambiguous
23+ --> $DIR/issue-114682-2.rs:9 :33
2124 |
2225LL | type A = issue_114682_2_extern::max;
2326 | ^^^ ambiguous name
2427 |
28+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29+ = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
2530 = note: ambiguous because of multiple glob imports of a name in the same module
2631note: `max` could refer to the type alias defined here
2732 --> $DIR/auxiliary/issue-114682-2-extern.rs:17:9
@@ -36,4 +41,47 @@ LL | pub use self::d::*;
3641
3742error: aborting due to 2 previous errors
3843
39- For more information about this error, try `rustc --explain E0659`.
44+ Future incompatibility report: Future breakage diagnostic:
45+ error: `max` is ambiguous
46+ --> $DIR/issue-114682-2.rs:6:28
47+ |
48+ LL | use issue_114682_2_extern::max;
49+ | ^^^ ambiguous name
50+ |
51+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
52+ = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
53+ = note: ambiguous because of multiple glob imports of a name in the same module
54+ note: `max` could refer to the type alias defined here
55+ --> $DIR/auxiliary/issue-114682-2-extern.rs:17:9
56+ |
57+ LL | pub use self::e::*;
58+ | ^^^^^^^
59+ note: `max` could also refer to the module defined here
60+ --> $DIR/auxiliary/issue-114682-2-extern.rs:16:9
61+ |
62+ LL | pub use self::d::*;
63+ | ^^^^^^^
64+ = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default
65+
66+ Future breakage diagnostic:
67+ error: `max` is ambiguous
68+ --> $DIR/issue-114682-2.rs:9:33
69+ |
70+ LL | type A = issue_114682_2_extern::max;
71+ | ^^^ ambiguous name
72+ |
73+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
74+ = note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095>
75+ = note: ambiguous because of multiple glob imports of a name in the same module
76+ note: `max` could refer to the type alias defined here
77+ --> $DIR/auxiliary/issue-114682-2-extern.rs:17:9
78+ |
79+ LL | pub use self::e::*;
80+ | ^^^^^^^
81+ note: `max` could also refer to the module defined here
82+ --> $DIR/auxiliary/issue-114682-2-extern.rs:16:9
83+ |
84+ LL | pub use self::d::*;
85+ | ^^^^^^^
86+ = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default
87+
0 commit comments