fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0659]: `sub` is ambiguous (name vs any other name during import resolution) 2 --> $DIR/block-scoped-shadow-nested.rs:16:13 3 | 4LL | use sub::bar; 5 | ^^^ ambiguous name 6 | 7note: `sub` could refer to the module imported here 8 --> $DIR/block-scoped-shadow-nested.rs:14:9 9 | 10LL | use my::sub; 11 | ^^^^^^^ 12note: `sub` could also refer to the module defined here 13 --> $DIR/block-scoped-shadow-nested.rs:9:1 14 | 15LL | / mod sub { 16LL | | pub fn bar() {} 17LL | | } 18 | |_^ 19 = help: use `crate::sub` to refer to this module unambiguously 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0659`.