]> git.proxmox.com Git - rustc.git/blob - tests/ui/lifetimes/issue-34979.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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() {}