diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/inline-const/expr-with-block.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/inline-const/expr-with-block.rs b/src/test/ui/inline-const/expr-with-block.rs new file mode 100644 index 000000000..391872476 --- /dev/null +++ b/src/test/ui/inline-const/expr-with-block.rs @@ -0,0 +1,10 @@ +// check-pass +#![feature(inline_const)] +fn main() { + match true { + true => const {} + false => () + } + const {} + () +} |