about summary refs log tree commit diff
path: root/tests/ui/parser/fn-field-parse-error-ice.rs
blob: f1bc561b89fb7ec5d6a0a1ad3acc7c63312b48d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for #85794
//@ edition: 2015

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() {}