]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/where-clauses.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / ui / underscore-lifetime / where-clauses.rs
1 trait Foo<'a> {}
2
3 impl<'b: '_> Foo<'b> for i32 {} //~ ERROR `'_` cannot be used here
4
5 impl<T: '_> Foo<'static> for Vec<T> {} //~ ERROR `'_` cannot be used here
6
7 fn main() { }