summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-16683.rs
blob: 72fa21bddd1861d63fd8a248dec41b2971b9ffbb (plain)
1
2
3
4
5
6
7
8
9
trait T<'a> {
    fn a(&'a self) -> &'a bool;
    fn b(&self) {
        self.a();
        //~^ ERROR lifetime may not live long enough
    }
}

fn main() {}