Skip to content

Commit

Permalink
remove FIXME and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mj10021 committed Jun 28, 2023
1 parent ce5ed5b commit 71362c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ where
};

// Check the qualifs of the value of `const` items.
// FIXME(valtrees): check whether const qualifs should behave the same
// way for type and mir constants.
let uneval = match constant.literal {
ConstantKind::Ty(ct)
if matches!(
Expand Down
12 changes: 12 additions & 0 deletions tests/ui/match/issue-113012.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// run-pass

#![allow(dead_code)]
struct Foo(());

const FOO: Foo = Foo(match 0 {
0.. => (),
_ => (),
});

fn main() {
}

0 comments on commit 71362c7

Please sign in to comment.