]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-25279.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / issues / issue-25279.rs
1 // run-pass
2 struct S<'a>(&'a ());
3
4 impl<'a> S<'a> {
5     fn foo(self) -> &'a () {
6         <Self>::bar(self)
7     }
8
9     fn bar(self) -> &'a () {
10         self.0
11     }
12 }
13
14 fn main() {
15     S(&()).foo();
16 }