]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs
normalize stderr
[rust.git] / src / test / 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() {}