2018-10-11 14:51:44 -05:00
|
|
|
// revisions: rust2015 rust2018
|
|
|
|
//[rust2018] edition:2018
|
|
|
|
|
|
|
|
trait WithType<T> {}
|
|
|
|
trait WithRegion<'a> { }
|
|
|
|
|
|
|
|
trait Foo { }
|
|
|
|
|
|
|
|
impl<T> Foo for Vec<T>
|
|
|
|
where
|
|
|
|
T: WithType<&u32>
|
2019-11-18 12:43:11 -06:00
|
|
|
//[rust2015,rust2018]~^ ERROR `&` without an explicit lifetime name cannot be used here
|
2018-10-11 14:51:44 -05:00
|
|
|
{ }
|
|
|
|
|
|
|
|
fn main() {}
|