rust/src/test/ui/consts/const_in_pattern/cross-crate-fail.rs

16 lines
297 B
Rust
Raw Normal View History

2020-04-07 20:01:41 +00:00
// aux-build:consts.rs
#![warn(indirect_structural_match)]
extern crate consts;
fn main() {
match None {
consts::SOME => panic!(),
2020-04-07 20:01:41 +00:00
//~^ must be annotated with `#[derive(PartialEq, Eq)]`
//~| must be annotated with `#[derive(PartialEq, Eq)]`
_ => {}
}
}