rust/tests/ui/parser/semi-in-let-chain.rs

27 lines
327 B
Rust

// Issue #117720
//@ edition: 2024
fn main() {
if let () = ()
&& let () = (); //~ERROR
&& let () = ()
{
}
}
fn foo() {
if let () = ()
&& () == (); //~ERROR
&& 1 < 0
{
}
}
fn bar() {
if let () = ()
&& () == (); //~ERROR
&& let () = ()
{
}
}