blob: 6f0f66e01be0e517f50ec9f93bdb08cb3f9ce090 [file]
// https://doc.rust-lang.org/error_codes/E0423.html
#![feature(no_core)]
#![no_core]
#![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
}