2025-07-13 16:25:27 -04:00
|
|
|
// https://github.com/rust-lang/rust/issues/32086
|
2016-06-03 23:15:00 +03:00
|
|
|
struct S(u8);
|
|
|
|
|
const C: S = S(10);
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2019-10-14 17:20:50 -07:00
|
|
|
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`
|
2016-06-03 23:15:00 +03:00
|
|
|
}
|