summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/fn-field-parse-error-ice.rs
blob: 188257ea53a316a94cc27b7aa6eaf60bf7e716ad (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 expected identifier, found keyword `fn`
    //~| ERROR cannot find type `dyn` in this scope
}

fn main() {}