2020-04-07 15:01:41 -05:00
|
|
|
//@ aux-build:consts.rs
|
|
|
|
|
|
|
|
extern crate consts;
|
|
|
|
|
2020-05-02 16:39:12 -05:00
|
|
|
struct Defaulted;
|
|
|
|
impl consts::AssocConst for Defaulted {}
|
|
|
|
|
2020-04-07 15:01:41 -05:00
|
|
|
fn main() {
|
2020-05-02 16:39:12 -05:00
|
|
|
let _ = Defaulted;
|
2020-04-07 15:01:41 -05:00
|
|
|
match None {
|
2020-04-28 16:30:44 -05:00
|
|
|
consts::SOME => panic!(),
|
2023-09-26 02:39:41 -05:00
|
|
|
//~^ must be annotated with `#[derive(PartialEq)]`
|
2020-04-07 15:01:41 -05:00
|
|
|
|
|
|
|
_ => {}
|
|
|
|
}
|
2020-05-02 16:39:12 -05:00
|
|
|
|
|
|
|
match None {
|
|
|
|
<Defaulted as consts::AssocConst>::SOME => panic!(),
|
2023-09-26 02:39:41 -05:00
|
|
|
//~^ must be annotated with `#[derive(PartialEq)]`
|
2020-05-02 16:39:12 -05:00
|
|
|
|
|
|
|
_ => {}
|
|
|
|
}
|
2020-04-07 15:01:41 -05:00
|
|
|
}
|