fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
268 B18 linesraw
1// edition:2018
2// run-rustfix
3
4trait WithType<T> {}
5trait WithRegion<'a> { }
6
7#[allow(dead_code)]
8struct Foo<T> {
9    t: T
10}
11
12impl<T> Foo<T>
13where
14    T: for<'a> WithType<&'a u32>
15//~^ ERROR `&` without an explicit lifetime name cannot be used here
16{ }
17
18fn main() {}