]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-expl-self.rs
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-expl-self.rs
1 // run-pass
2 #![allow(dead_code)]
3 // Test that you can insert an explicit lifetime in explicit self.
4
5 // pretty-expanded FIXME #23616
6
7 struct Foo {
8     f: usize
9 }
10
11 impl Foo {
12     pub fn foo<'a>(&'a self) {}
13 }
14
15 pub fn main() {}