Skip to content

Commit 659aa77

Browse files
authored
test: add ()=()=()=... to weird-exprs.rs
1 parent d4ea0b3 commit 659aa77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/ui/weird-exprs.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22

33
#![feature(generators)]
4+
#![feature(destructuring_assignment)]
45

56
#![allow(non_camel_case_types)]
67
#![allow(dead_code)]
@@ -159,6 +160,11 @@ fn match_nested_if() {
159160
assert!(val);
160161
}
161162

163+
fn empty_tuple_assignment() {
164+
let val = ()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=();
165+
assert_eq!(val, ());
166+
}
167+
162168
pub fn main() {
163169
strange();
164170
funny();
@@ -177,4 +183,5 @@ pub fn main() {
177183
r#match();
178184
i_yield();
179185
match_nested_if();
186+
empty_tuple_assignment();
180187
}

0 commit comments

Comments
 (0)