summary refs log tree commit diff
path: root/src/test/ui/issues/issue-26217.rs
blob: a700807d7f2160012221330e0eea3c2adb9e18b3 (plain)
1
2
3
4
5
6
fn foo<T>() where for<'a> T: 'a {}

fn main<'a>() {
    foo::<&'a i32>();
    //~^ ERROR the type `&'a i32` does not fulfill the required lifetime
}