2018-10-11 15:51:44 -04:00
|
|
|
// revisions: rust2015 rust2018
|
|
|
|
//[rust2018] edition:2018
|
|
|
|
|
|
|
|
trait WithType<T> {}
|
|
|
|
trait WithRegion<'a> { }
|
|
|
|
|
|
|
|
trait Foo { }
|
|
|
|
|
|
|
|
impl<T> Foo for Vec<T>
|
|
|
|
where
|
|
|
|
T: WithRegion<'_>
|
2019-11-18 10:43:11 -08:00
|
|
|
//[rust2015,rust2018]~^ ERROR `'_` cannot be used here
|
2018-10-11 15:51:44 -04:00
|
|
|
{ }
|
|
|
|
|
|
|
|
fn main() {}
|