summaryrefslogtreecommitdiffstats
path: root/src/test/ui/underscore-lifetime/where-clauses.rs
blob: ee6823b80478218433ceec45055b2423b41fa754 (plain)
1
2
3
4
5
6
7
trait Foo<'a> {}

impl<'b: '_> Foo<'b> for i32 {} //~ ERROR `'_` cannot be used here

impl<T: '_> Foo<'static> for Vec<T> {} //~ ERROR `'_` cannot be used here

fn main() { }