fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0412]: cannot find type `Bar` in this scope 2 --> $DIR/issue-4366-2.rs:15:21 3 | 4LL | fn sub() -> Bar { 1 } 5 | ^^^ not found in this scope 6help: possible candidate is found in another module, you can import it into scope 7 | 8LL | use a::b::Bar; 9 | 10 11error[E0423]: expected function, found module `foo` 12 --> $DIR/issue-4366-2.rs:25:5 13 | 14LL | foo(); 15 | ^^^ not a function 16help: possible better candidates are found in other modules, you can import them into scope 17 | 18LL | use foo::foo; 19 | 20LL | use m1::foo; 21 | 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0412, E0423. 26For more information about an error, try `rustc --explain E0412`.