]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-34979.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[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() {}