diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-15735.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-15735.rs b/src/test/ui/issues/issue-15735.rs new file mode 100644 index 000000000..f9ba34405 --- /dev/null +++ b/src/test/ui/issues/issue-15735.rs @@ -0,0 +1,17 @@ +// check-pass +#![allow(dead_code)] +struct A<'a> { + a: &'a i32, + b: &'a i32, +} + +impl <'a> A<'a> { + fn foo<'b>(&'b self) { + A { + a: self.a, + b: self.b, + }; + } +} + +fn main() { } |