Debian Codegraph @

gcc/testsuite/rust/compile/found_struct.rs

raw
1 // https://doc.rust-lang.org/error_codes/E0423.html
2 #![allow(unused)]
3 fn main() {
4 struct Foo {
5 a: bool,
6 };
7
8 let f = Foo(); // { dg-error "expected function, tuple struct or tuple variant, found struct .Foo." }
9 // error: expected function, tuple struct or tuple variant, found `Foo`
10 // `Foo` is a struct name, but this expression uses it like a function name
11 }