Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/109153.rs: fixed with errors #1606

Merged
merged 1 commit into from
Jun 21, 2023
Merged

ices/109153.rs: fixed with errors #1606

merged 1 commit into from
Jun 21, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109153

use foo::*;

mod foo {
    pub mod bar {
        pub mod bar {
            pub mod bar {}
        }
    }
}

use bar::bar;
use bar::*;

fn main() {}
=== stdout ===
=== stderr ===
error[E0659]: `bar` is ambiguous
  --> /home/runner/work/glacier/glacier/ices/109153.rs:11:5
   |
11 | use bar::bar;
   |     ^^^ ambiguous name
   |
   = note: ambiguous because of multiple glob imports of a name in the same module
note: `bar` could refer to the module imported here
  --> /home/runner/work/glacier/glacier/ices/109153.rs:1:5
   |
1  | use foo::*;
   |     ^^^^^^
   = help: consider adding an explicit import of `bar` to disambiguate
note: `bar` could also refer to the module imported here
  --> /home/runner/work/glacier/glacier/ices/109153.rs:12:5
   |
12 | use bar::*;
   |     ^^^^^^
   = help: consider adding an explicit import of `bar` to disambiguate

warning: unused import: `bar::*`
  --> /home/runner/work/glacier/glacier/ices/109153.rs:12:5
   |
12 | use bar::*;
   |     ^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0659`.
==============

=== stdout ===
=== stderr ===
error[E0659]: `bar` is ambiguous
  --> /home/runner/work/glacier/glacier/ices/109153.rs:11:5
   |
11 | use bar::bar;
   |     ^^^ ambiguous name
   |
   = note: ambiguous because of multiple glob imports of a name in the same module
note: `bar` could refer to the module imported here
  --> /home/runner/work/glacier/glacier/ices/109153.rs:1:5
   |
1  | use foo::*;
   |     ^^^^^^
   = help: consider adding an explicit import of `bar` to disambiguate
note: `bar` could also refer to the module imported here
  --> /home/runner/work/glacier/glacier/ices/109153.rs:12:5
   |
12 | use bar::*;
   |     ^^^^^^
   = help: consider adding an explicit import of `bar` to disambiguate

warning: unused import: `bar::*`
  --> /home/runner/work/glacier/glacier/ices/109153.rs:12:5
   |
12 | use bar::*;
   |     ^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0659`.
==============
@JohnTitor JohnTitor merged commit f5a95f7 into master Jun 21, 2023
@JohnTitor JohnTitor deleted the autofix/ices/109153.rs branch June 21, 2023 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants