]> git.lizzy.rs Git - rust.git/blob - tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / underscore-lifetime / where-clause-inherent-impl-underscore.rs
1 // revisions: rust2015 rust2018
2 //[rust2018] edition:2018
3
4 trait WithType<T> {}
5 trait WithRegion<'a> { }
6
7 struct Foo<T> {
8     t: T
9 }
10
11 impl<T> Foo<T>
12 where
13     T: WithRegion<'_>
14 //[rust2015,rust2018]~^ ERROR `'_` cannot be used here
15 { }
16
17 fn main() {}