]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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,rust2018]~^ ERROR `&` without an explicit lifetime name cannot be used here
13 { }
14
15 fn main() {}