rust/tests/ui/parser/pat-lt-bracket-6.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
234 B
Rust
Raw Normal View History

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