]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / 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 }