summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/fn-field-parse-error-ice.rs
blob: 4ea55062fc4be1777552c0537c64d1f2165036b0 (plain)
1
2
3
4
5
6
7
8
9
10
// Regression test for #85794

struct Baz {
    inner : dyn fn ()
    //~^ ERROR expected `,`, or `}`, found keyword `fn`
    //~| ERROR functions are not allowed in struct definitions
    //~| ERROR cannot find type `dyn` in this scope
}

fn main() {}