Skip to content

Commit

Permalink
Rollup merge of rust-lang#78948 - slanterns:master, r=varkor
Browse files Browse the repository at this point in the history
test: add `()=()=()=...` to weird-exprs.rs

Idea from rust-lang#71156 (comment) πŸ˜„

Builds on nightly since rust-lang#78748 has been merged.
  • Loading branch information
Dylan-DPC authored Nov 15, 2020
2 parents a29b68f + 38fa66a commit 7f7fa97
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 monkey_barrel() {
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();
monkey_barrel();
}

0 comments on commit 7f7fa97

Please sign in to comment.