diff options
Diffstat (limited to 'tests/ui/const_prop/unreachable-bounds.rs')
-rw-r--r-- | tests/ui/const_prop/unreachable-bounds.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/const_prop/unreachable-bounds.rs b/tests/ui/const_prop/unreachable-bounds.rs new file mode 100644 index 000000000..8cf98e154 --- /dev/null +++ b/tests/ui/const_prop/unreachable-bounds.rs @@ -0,0 +1,6 @@ +// Use `build-pass` to ensure const-prop lint runs. +// build-pass + +fn main() { + [()][if false { 1 } else { return }] +} |