diff options
Diffstat (limited to 'src/test/ui/consts/const_in_pattern/cross-crate-fail.rs')
-rw-r--r-- | src/test/ui/consts/const_in_pattern/cross-crate-fail.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/ui/consts/const_in_pattern/cross-crate-fail.rs b/src/test/ui/consts/const_in_pattern/cross-crate-fail.rs deleted file mode 100644 index ab297f54d..000000000 --- a/src/test/ui/consts/const_in_pattern/cross-crate-fail.rs +++ /dev/null @@ -1,25 +0,0 @@ -// aux-build:consts.rs - -#![warn(indirect_structural_match)] - -extern crate consts; - -struct Defaulted; -impl consts::AssocConst for Defaulted {} - -fn main() { - let _ = Defaulted; - match None { - consts::SOME => panic!(), - //~^ must be annotated with `#[derive(PartialEq, Eq)]` - - _ => {} - } - - match None { - <Defaulted as consts::AssocConst>::SOME => panic!(), - //~^ must be annotated with `#[derive(PartialEq, Eq)]` - - _ => {} - } -} |