]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / rfc-0107-bind-by-move-pattern-guards / former-E0008-now-pass.rs
1 // This test used to emit E0008 but now passed since `bind_by_move_pattern_guards`
2 // have been stabilized.
3
4 // check-pass
5
6 fn main() {
7     match Some("hi".to_string()) {
8         Some(s) if s.len() == 0 => {},
9         _ => {},
10     }
11 }