1 An identifier was used like a function name or a value was expected and the
2 identifier exists but it belongs to a different namespace.
4 Erroneous code example:
7 struct Foo { a: bool };
10 // error: expected function, tuple struct or tuple variant, found `Foo`
11 // `Foo` is a struct name, but this expression uses it like a function name
14 Please verify you didn't misspell the name of what you actually wanted to use
23 It is common to forget the trailing `!` on macro invocations, which would also
28 // error: expected function, tuple struct or tuple variant,
29 // found macro `println`
30 // did you mean `println!(...)`? (notice the trailing `!`)
33 Another case where this error is emitted is when a value is expected, but
34 something else is found:
43 //~^ ERROR expected value, found module `a`
44 // did you mean `a::I`?