summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/incomplete-fn-in-struct-definition.rs
blob: cd8a79ba6874130a76ca66cfdb49a3335468abb7 (plain)
1
2
3
4
5
fn main() {}

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