mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
28 lines
334 B
Rust
28 lines
334 B
Rust
// Issue #117720
|
|
|
|
#![feature(let_chains)]
|
|
|
|
fn main() {
|
|
if let () = ()
|
|
&& let () = (); //~ERROR
|
|
&& let () = ()
|
|
{
|
|
}
|
|
}
|
|
|
|
fn foo() {
|
|
if let () = ()
|
|
&& () == (); //~ERROR
|
|
&& 1 < 0
|
|
{
|
|
}
|
|
}
|
|
|
|
fn bar() {
|
|
if let () = ()
|
|
&& () == (); //~ERROR
|
|
&& let () = ()
|
|
{
|
|
}
|
|
}
|