Skip to content

Commit 814782b

Browse files
committed
Add test for issue-69840
1 parent e817cd2 commit 814782b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/ui/impl-trait/issue-69840.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// check-pass
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+
pub fn foo<'a>() {
13+
let _x: impl Trait<A<'a>> = ();
14+
}
15+
16+
fn main() {}

0 commit comments

Comments
 (0)