Skip to content

Commit e6e0676

Browse files
Add test closure.rs
1 parent e9a7eb4 commit e6e0676

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • tests/ui/pattern/rfc-3637-guard-patterns
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// checks whether closures work in guard patterns
2+
3+
//@ check-pass
4+
#![feature(guard_patterns)]
5+
6+
pub fn probe((_ if (|| true)()): u8) {}
7+
8+
fn main() {}

0 commit comments

Comments
 (0)