diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-11 10:20:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-11 10:20:26 +0200 |
| commit | 35947cfbc4e37ae73bad15c777a5388cf9e633c8 (patch) | |
| tree | 52d4a311b71b5b3430ef7a21a8a9ab9cacc77a20 | |
| parent | 42b06817e6cbcbf62f280c64da22c1437794bcd4 (diff) | |
| parent | 0f924b86c496bf4224fc5f84b7ce40c93bb2c7a9 (diff) | |
| download | rust-35947cfbc4e37ae73bad15c777a5388cf9e633c8.tar.gz rust-35947cfbc4e37ae73bad15c777a5388cf9e633c8.zip | |
Rollup merge of #43752 - arshiamufti:union-test, r=estebank
Add IRC's `!union union` as a test, addresses #43553 This pull request adds a new test, `union` to `weird-exprs.rs`.
| -rw-r--r-- | src/test/run-pass/weird-exprs.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/run-pass/weird-exprs.rs b/src/test/run-pass/weird-exprs.rs index 20f58301d45..64fd9e0a772 100644 --- a/src/test/run-pass/weird-exprs.rs +++ b/src/test/run-pass/weird-exprs.rs @@ -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(); @@ -119,4 +123,5 @@ pub fn main() { dots(); you_eight(); fishy(); + union(); } |
