Improve fail_compilation tests by using `TEST_OUTPUT`
fix Issue 11142 - Wrong error message "no size yet for forward reference" for opaque struct
Merge pull request #2598 from 9rnsr/fix11142

Issue 11142 - Wrong error message "no size yet for forward reference" for opaque struct