Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() {
Copy link
Member

@jyn514 jyn514 Nov 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should match the naming convention of the file it's in ;)

Suggested change
fn empty_tuple_assignment() {
fn monkey_barrel() {

image

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();
}