]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs
add more to the ERROR messages
[rust.git] / src / test / ui / underscore-lifetime / where-clause-trait-impl-region.rs
1 // revisions: rust2015 rust2018
2 //[rust2018] edition:2018
3
4 trait WithType<T> {}
5 trait WithRegion<'a> { }
6
7 trait Foo { }
8
9 impl<T> Foo for Vec<T>
10 where
11     T: WithType<&u32>
12 //[rust2015]~^ ERROR `&` without an explicit lifetime name cannot be used here
13 //[rust2018]~^^ ERROR `&` without an explicit lifetime name cannot be used here
14 { }
15
16 fn main() {}