Rollup merge of #78948 - slanterns:master, r=varkor

test: add `()=()=()=...` to weird-exprs.rs

Idea from https://github.com/rust-lang/rust/pull/71156#discussion_r410953972 😄

Builds on nightly since https://github.com/rust-lang/rust/pull/78748 has been merged.
This commit is contained in:
Dylan DPC 2020-11-15 03:02:42 +01:00 committed by GitHub
commit 7f7fa9786a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
// run-pass
#![feature(generators)]
#![feature(destructuring_assignment)]
#![allow(non_camel_case_types)]
#![allow(dead_code)]
@ -159,6 +160,11 @@ fn match_nested_if() {
assert!(val);
}
fn monkey_barrel() {
let val = ()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=()=();
assert_eq!(val, ());
}
pub fn main() {
strange();
funny();
@ -177,4 +183,5 @@ pub fn main() {
r#match();
i_yield();
match_nested_if();
monkey_barrel();
}