rust/src/test/ui/issues/issue-26217.rs
2019-03-22 20:15:32 -07:00

11 lines
174 B
Rust

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