Skip to content

Commit

Permalink
Rollup merge of rust-lang#43752 - arshiamufti:union-test, r=estebank
Browse files Browse the repository at this point in the history
Add IRC's `!union union` as a test, addresses rust-lang#43553

This pull request adds a new test, `union` to `weird-exprs.rs`.
  • Loading branch information
GuillaumeGomez authored Aug 11, 2017
2 parents 42b0681 + 0f924b8 commit 35947cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/run-pass/weird-exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ fn fishy() {
String::<>::from::<>("><>").chars::<>().rev::<>().collect::<String>());
}

fn union() {
union union<'union> { union: &'union union<'union>, }
}

pub fn main() {
strange();
funny();
Expand All @@ -119,4 +123,5 @@ pub fn main() {
dots();
you_eight();
fishy();
union();
}

0 comments on commit 35947cf

Please sign in to comment.