blob: 66462e6f7bb3af8e4ea5f33c95671f12e8ebe707 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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
}
|