]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-34979.rs
Auto merge of #89555 - oli-obk:nll_member_constraint_diag, r=estebank
[rust.git] / src / test / ui / lifetimes / issue-34979.rs
1 trait Foo {}
2 impl<'a, T> Foo for &'a T {}
3
4 struct Ctx<'a>(&'a ())
5 where
6     &'a (): Foo, //~ ERROR: type annotations needed
7     &'static (): Foo;
8
9 fn main() {}