finish a pattern in enum.rs

This commit is contained in:
sfzhu93 2024-01-20 08:22:07 -08:00
parent edba94907d
commit 7ad307dc9d

View File

@ -132,7 +132,7 @@ fn multiple(x: bool, i: u8) {
// CHECK-NOT: [[x2]] = const 5
// CHECK: [[x2]] = const 0_u8;
// CHECK-NOT: [[x2]] = const 5
// CHECK: [[some:_.*]] = (({{_.*}} as Some
// CHECK: [[some:_.*]] = (({{_.*}} as Some).0: u8)
// CHECK: [[x2]] = [[some]];
let x2 = match e { Some(i) => i, None => 0 };