rust/src/test/ui/issues/issue-32086.rs
2018-12-25 21:08:33 -07:00

8 lines
214 B
Rust

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`
}