summary refs log tree commit diff
path: root/src/test/ui/issues/issue-28848.rs
blob: a62502390302b4f7c0ce5339f925757eb26811e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct Foo<'a, 'b: 'a>(&'a &'b ());

impl<'a, 'b> Foo<'a, 'b> {
    fn xmute(a: &'b ()) -> &'a () {
        unreachable!()
    }
}

pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
    Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
}

fn main() {}