]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-34979.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[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() {}