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 For (an erroneous) example, here a `struct` variant name were used as a
8 struct Foo { a: bool };
11 // error: expected function, tuple struct or tuple variant, found `Foo`
12 // `Foo` is a struct name, but this expression uses it like a function name
15 Please verify you didn't misspell the name of what you actually wanted to use
24 It is common to forget the trailing `!` on macro invocations, which would also
29 // error: expected function, tuple struct or tuple variant,
30 // found macro `println`
31 // did you mean `println!(...)`? (notice the trailing `!`)
34 Another case where this error is emitted is when a value is expected, but
35 something else is found:
44 //~^ ERROR expected value, found module `a`
45 // did you mean `a::I`?