blob: 496525ed5370cca71bfff61aa9eadab8a7fa66c1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn main() {
struct Test(&'static u8, [u8; 0]);
let x = Test(&0, []);
let Test(&desc[..]) = x;
//~^ error: expected a pattern, found an expression
//~| error: this pattern has 1 field, but the corresponding tuple struct has 2 fields
}
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|