]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/nested-items.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / in-band-lifetimes / nested-items.rs
1 // Test that the `'a` from the impl doesn't
2 // prevent us from creating a `'a` parameter
3 // on the `blah` function.
4 //
5 // check-pass
6
7 #![feature(in_band_lifetimes)]
8
9 struct Foo<'a> {
10     x: &'a u32
11
12 }
13
14 impl Foo<'a> {
15     fn method(&self) {
16         fn blah(f: Foo<'a>) { }
17     }
18 }
19
20 fn main() { }