blob: d35dfe576879e3b2d5da446f6ab612c8d8ce680b (
plain)
1
2
3
4
5
6
7
8
|
// https://github.com/rust-lang/rust/issues/32086
struct S(u8);
const C: S = S(10);
fn main() {
let C(a) = S(11); //~ ERROR expected tuple struct or tuple variant, found constant `C`
let C(..) = S(11); //~ ERROR expected tuple struct or tuple variant, found constant `C`
}
|