blob: 66462e6f7bb3af8e4ea5f33c95671f12e8ebe707 [file] [log] [blame]
// https://doc.rust-lang.org/error_codes/E0423.html
#![allow(unused)]
fn main() {
struct Foo {
a: bool,
};
let f = Foo(); // { dg-error "expected function, tuple struct or tuple variant, found struct .Foo." }
// error: expected function, tuple struct or tuple variant, found `Foo`
// `Foo` is a struct name, but this expression uses it like a function name
}