mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +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
|