diff --git a/tests/source/let_chains.rs b/tests/source/let_chains.rs index 88ee126bfbd..b7c1f811096 100644 --- a/tests/source/let_chains.rs +++ b/tests/source/let_chains.rs @@ -5,11 +5,11 @@ fn main() { if aaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaa && aaaaaaaaa && let Some(x) = xxxxxxxxxxxx && aaaaaaa && let None = aaaaaaaaaa {} - if aaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaa || aaaaaaaaa && let Some(x) = xxxxxxxxxxxx && aaaaaaa && let None = aaaaaaaaaa {} + if aaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaa && aaaaaaaaa && let Some(x) = xxxxxxxxxxxx && aaaaaaa && let None = aaaaaaaaaa {} if let Some(Struct { x:TS(1,2) }) = path::to::<_>(hehe) && let [Simple, people] = /* get ready */ create_universe(/* hi */ GreatPowers).initialize_badminton().populate_swamps() && - let everybody = (Loops { hi /*hi*/ , ..loopy() }) || summons::triumphantly() { todo!() } + let everybody = (Loops { hi /*hi*/ , ..loopy() }) && summons::triumphantly() { todo!() } if let XXXXXXXXX { xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyy, zzzzzzzzzzzzz} = xxxxxxx() && let Foo = bar() { todo!() } diff --git a/tests/target/let_chains.rs b/tests/target/let_chains.rs index 165641521cf..1ceecac8abc 100644 --- a/tests/target/let_chains.rs +++ b/tests/target/let_chains.rs @@ -13,11 +13,12 @@ fn main() { && let None = aaaaaaaaaa {} - if aaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaa - || aaaaaaaaa - && let Some(x) = xxxxxxxxxxxx - && aaaaaaa - && let None = aaaaaaaaaa + if aaaaaaaaaaaaaaaaaaaaa + && aaaaaaaaaaaaaaa + && aaaaaaaaa + && let Some(x) = xxxxxxxxxxxx + && aaaaaaa + && let None = aaaaaaaaaa {} if let Some(Struct { x: TS(1, 2) }) = path::to::<_>(hehe) @@ -29,7 +30,7 @@ fn main() { hi, /*hi*/ ..loopy() }) - || summons::triumphantly() + && summons::triumphantly() { todo!() }