blob: a5ff7fcdb5e4ed6a9ddc27c63c76ce230bc2b18b [file] [log] [blame]
//@ edition:2021
struct AnyOption<T>(T);
impl<T> AnyOption<T> {
const NONE: Option<T> = None;
}
fn uwu() {}
fn defines() {
match Some(uwu) {
AnyOption::<_>::NONE => {}
//~^ ERROR constant of non-structural type
_ => {}
}
match Some(|| {}) {
AnyOption::<_>::NONE => {}
//~^ ERROR constant of non-structural type
_ => {}
}
}
fn main() {}