Revert spurious change
This commit is contained in:
parent
36c4c1e366
commit
6d6be5fd8b
1 changed files with 21 additions and 21 deletions
|
|
@ -15,21 +15,21 @@
|
|||
async fn f() -> u8 { 1 }
|
||||
async fn foo() -> [bool; 10] { [false; 10] }
|
||||
|
||||
// pub async fn g(x: u8) {
|
||||
// match x {
|
||||
// y if f().await == y => (),
|
||||
// _ => (),
|
||||
// }
|
||||
// }
|
||||
pub async fn g(x: u8) {
|
||||
match x {
|
||||
y if f().await == y => (),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
// #78366: check the reference to the binding is recorded even if the binding is not autorefed
|
||||
|
||||
// async fn h(x: usize) {
|
||||
// match x {
|
||||
// y if foo().await[y] => (),
|
||||
// _ => (),
|
||||
// }
|
||||
// }
|
||||
async fn h(x: usize) {
|
||||
match x {
|
||||
y if foo().await[y] => (),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
async fn i(x: u8) {
|
||||
match x {
|
||||
|
|
@ -38,16 +38,16 @@ async fn i(x: u8) {
|
|||
}
|
||||
}
|
||||
|
||||
// async fn j(x: u8) {
|
||||
// match x {
|
||||
// y if let (1, 42) = (f().await, y) => (),
|
||||
// _ => (),
|
||||
// }
|
||||
// }
|
||||
async fn j(x: u8) {
|
||||
match x {
|
||||
y if let (1, 42) = (f().await, y) => (),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// let _ = g(10);
|
||||
// let _ = h(9);
|
||||
let _ = g(10);
|
||||
let _ = h(9);
|
||||
let _ = i(8);
|
||||
// let _ = j(7);
|
||||
let _ = j(7);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue