rust/tests/ui/structs/incomplete-fn-in-struct-def...

6 lines
88 B
Rust

fn main() {}
struct S {
fn: u8 //~ ERROR expected identifier, found keyword `fn`
}