2021-08-01 19:18:50 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
2022-02-27 00:08:31 -06:00
|
|
|
|
2021-08-01 19:18:50 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let true = (true && false) else { return }; //~ ERROR a `&&` expression cannot be directly assigned in `let...else`
|
|
|
|
let true = (true || false) else { return }; //~ ERROR a `||` expression cannot be directly assigned in `let...else`
|
|
|
|
}
|