mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
10 lines
234 B
Rust
10 lines
234 B
Rust
fn main() {
|
|
struct Test(&'static u8, [u8; 0]);
|
|
let x = Test(&0, []);
|
|
|
|
let Test(&desc[..]) = x;
|
|
//~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
|
|
}
|
|
|
|
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|