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
|