]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-42944.rs
Auto merge of #58406 - Disasm:rv64-support, r=nagisa
[rust.git] / src / test / ui / issue-42944.rs
1 mod foo {
2     pub struct B(());
3 }
4
5 mod bar {
6     use foo::B;
7
8     fn foo() {
9         B(()); //~ ERROR expected function, found struct `B` [E0423]
10     }
11 }
12
13 mod baz {
14     fn foo() {
15         B(()); //~ ERROR cannot find function `B` in this scope [E0425]
16     }
17 }
18
19 fn main() {}