]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-field-parse-error-ice.rs
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / ui / parser / fn-field-parse-error-ice.rs
1 // Regression test for #85794
2
3 struct Baz {
4     inner : dyn fn ()
5     //~^ ERROR expected `,`, or `}`, found keyword `fn`
6     //~| ERROR functions are not allowed in struct definitions
7     //~| ERROR cannot find type `dyn` in this scope
8 }
9
10 fn main() {}