rust/src/test/ui/parser/unsized.rs
2018-12-25 21:08:33 -07:00

9 lines
200 B
Rust

// compile-flags: -Z parse-only
// Test syntax checks for `type` keyword.
struct S1 for type;
//~^ ERROR expected `where`, `{`, `(`, or `;` after struct name, found keyword `for`
pub fn main() {
}