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