]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/where-clauses.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[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() { }