mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
59 lines
819 B
Rust
59 lines
819 B
Rust
// issue #117766
|
|
|
|
#![feature(let_chains)]
|
|
fn main() {
|
|
if let () = ()
|
|
&& let () = () { //~ERROR: found a `{` in the middle of a let-chain
|
|
&& let () = ()
|
|
{
|
|
}
|
|
}
|
|
|
|
fn quux() {
|
|
while let () = ()
|
|
&& let () = () { //~ERROR: found a `{` in the middle of a let-chain
|
|
&& let () = ()
|
|
{
|
|
}
|
|
}
|
|
|
|
fn foobar() {
|
|
while false {}
|
|
{
|
|
&& let () = ()
|
|
}
|
|
|
|
fn fubar() {
|
|
while false {
|
|
{
|
|
&& let () = ()
|
|
}
|
|
}
|
|
|
|
fn qux() {
|
|
let foo = false;
|
|
match foo {
|
|
_ if foo => {
|
|
&& let () = ()
|
|
_ => {}
|
|
}
|
|
}
|
|
|
|
fn foo() {
|
|
{
|
|
&& let () = ()
|
|
}
|
|
|
|
fn bar() {
|
|
if false {}
|
|
{
|
|
&& let () = ()
|
|
}
|
|
|
|
fn baz() {
|
|
if false {
|
|
{
|
|
&& let () = ()
|
|
}
|
|
} //~ERROR: this file contains an unclosed delimiter
|