fn main() {
let mut a = Some(1);
if let &mut Some(x) = &mut a {
println!("{:?}", x);
}
if let Some(y) = &mut a {
*y = 2;
println!("{:?}", y);
}
if let z = &mut a {
*z = Some(3);
println!("{:?}", z);
}
}
1
ila 2020-09-15 20:31:15 +08:00 via Android
代码 timeout 了吗
|
2
zephoony 2020-12-04 09:32:27 +08:00
编译不过去
|