Skip to content

Commit

Permalink
test: add ()=()=()=... to weird-exprs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
slanterns authored Nov 11, 2020
1 parent d4ea0b3 commit 659aa77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/weird-exprs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// run-pass

#![feature(generators)]
#![feature(destructuring_assignment)]

#![allow(non_camel_case_types)]
#![allow(dead_code)]
Expand Down Expand Up @@ -159,6 +160,11 @@ fn match_nested_if() {
assert!(val);
}

fn empty_tuple_assignment() {
let val = ()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=();
assert_eq!(val, ());
}

pub fn main() {
strange();
funny();
Expand All @@ -177,4 +183,5 @@ pub fn main() {
r#match();
i_yield();
match_nested_if();
empty_tuple_assignment();
}

0 comments on commit 659aa77

Please sign in to comment.