about summary refs log tree commit diff
path: root/tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs')
-rw-r--r--tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs b/tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs
new file mode 100644
index 00000000000..79b85e4c132
--- /dev/null
+++ b/tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs
@@ -0,0 +1,7 @@
+//! Regression test for https://github.com/rust-lang/rust/issues/13703
+
+//@ check-pass
+
+pub struct Foo<'a, 'b: 'a> { foo: &'a &'b isize }
+pub fn foo<'a, 'b>(x: Foo<'a, 'b>, _o: Option<&   &   ()>) { let _y = x.foo; }
+fn main() {}