]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-field-parse-error-ice.rs
Auto merge of #101030 - woppopo:const_location, r=scottmcm
[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 expected identifier, found keyword `fn`
7     //~| ERROR cannot find type `dyn` in this scope
8 }
9
10 fn main() {}