os-rust/src/test/ui/parser/pat-lt-bracket-6.rs

7 lines
264 B
Rust
Raw Normal View History

2015-04-03 05:56:27 +03:00
fn main() {
let Test(&desc[..]) = x; //~ ERROR: expected one of `)`, `,`, or `@`, found `[`
//~^ ERROR cannot find value `x` in this scope
//~| ERROR cannot find tuple struct/variant `Test` in this scope
//~| ERROR subslice patterns are unstable
2015-04-03 05:56:27 +03:00
}