mirror of https://github.com/rust-lang/rust
8 lines
319 B
Rust
8 lines
319 B
Rust
fn main() {
|
|
unsafe {
|
|
dealloc(ptr2, Layout::(x: !)(1, 1)); //~ ERROR: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `:`
|
|
//~^ ERROR: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
|
|
//~| while parsing this parenthesized list of type arguments starting here
|
|
}
|
|
}
|