2015-04-02 21:56:27 -05:00
|
|
|
fn main() {
|
2019-07-23 19:30:37 -05:00
|
|
|
struct Test(&'static u8, [u8; 0]);
|
|
|
|
let x = Test(&0, []);
|
|
|
|
|
2019-07-13 20:05:52 -05:00
|
|
|
let Test(&desc[..]) = x;
|
|
|
|
//~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
|
2015-04-02 21:56:27 -05:00
|
|
|
}
|
2019-07-23 19:30:37 -05:00
|
|
|
|
|
|
|
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|