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:
commit
7f7fa9786a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user