]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-60473.rs
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting
[rust.git] / src / test / ui / impl-trait / issue-60473.rs
1 // Regression test for #60473
2
3 #![feature(impl_trait_in_bindings)]
4 #![allow(incomplete_features)]
5
6 struct A<'a>(&'a ());
7
8 trait Trait<T> {}
9
10 impl<T> Trait<T> for () {}
11
12 fn main() {
13     let x: impl Trait<A> = ();
14     //~^ ERROR: missing lifetime specifier
15 }