]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-field-parse-error-ice.rs
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[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() {}