libsyntax: error on struct Foo {}.

Fixes #5449.