fork/rust

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

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

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