1 // Beginners write `mod.item` when they should write `mod::item`.
2 // This tests that we suggest the latter when we encounter the former.
7 pub fn f() -> i32 { 2 }
12 pub fn g() -> i32 { 4 }
18 //~^ ERROR expected value, found module `a`
23 //~^ ERROR expected value, found module `a`
28 //~^ ERROR expected value, found module `a`
33 //~^ ERROR expected value, found module `a::b`
38 //~^ ERROR expected value, found module `a`
41 //~^ ERROR expected value, found module `a::b`
46 //~^ ERROR expected value, found module `a::b`
51 //~^ ERROR expected value, found module `a::b`
56 //~^ ERROR expected function, found module `a::b`