]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-16683.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-16683.rs
1 trait T<'a> {
2     fn a(&'a self) -> &'a bool;
3     fn b(&self) {
4         self.a();
5         //~^ ERROR lifetime may not live long enough
6     }
7 }
8
9 fn main() {}