2015-04-03 05:56:27 +03:00
|
|
|
fn main() {
|
2019-07-24 02:30:37 +02:00
|
|
|
struct Test(&'static u8, [u8; 0]);
|
|
|
|
let x = Test(&0, []);
|
|
|
|
|
2019-07-14 01:05:52 +00:00
|
|
|
let Test(&desc[..]) = x;
|
2024-01-28 16:12:21 +01:00
|
|
|
//~^ error: expected a pattern, found an expression
|
|
|
|
//~| error: this pattern has 1 field, but the corresponding tuple struct has 2 fields
|
2015-04-03 05:56:27 +03:00
|
|
|
}
|
2019-07-24 02:30:37 +02:00
|
|
|
|
|
|
|
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|