Skip to content

Commit 35947cf

Browse files
Rollup merge of rust-lang#43752 - arshiamufti:union-test, r=estebank
Add IRC's `!union union` as a test, addresses rust-lang#43553 This pull request adds a new test, `union` to `weird-exprs.rs`.
2 parents 42b0681 + 0f924b8 commit 35947cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/run-pass/weird-exprs.rs

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ fn fishy() {
107107
String::<>::from::<>("><>").chars::<>().rev::<>().collect::<String>());
108108
}
109109

110+
fn union() {
111+
union union<'union> { union: &'union union<'union>, }
112+
}
113+
110114
pub fn main() {
111115
strange();
112116
funny();
@@ -119,4 +123,5 @@ pub fn main() {
119123
dots();
120124
you_eight();
121125
fishy();
126+
union();
122127
}

0 commit comments

Comments
 (0)