rust/src/test/ui/issues/issue-32086.rs

8 lines
214 B
Rust
Raw Normal View History

2016-06-03 15:15:00 -05:00
struct S(u8);
const C: S = S(10);
fn main() {
let C(a) = S(11); //~ ERROR expected tuple struct/variant, found constant `C`
let C(..) = S(11); //~ ERROR expected tuple struct/variant, found constant `C`
2016-06-03 15:15:00 -05:00
}