rust/tests/ui/structs/incomplete-fn-in-struct-definition.rs
2023-01-11 09:32:08 +00:00

6 lines
88 B
Rust

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