Skip to content

Commit

Permalink
Add test for issue-69840
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jun 23, 2020
1 parent e817cd2 commit 814782b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/ui/impl-trait/issue-69840.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// check-pass

#![feature(impl_trait_in_bindings)]
#![allow(incomplete_features)]

struct A<'a>(&'a ());

trait Trait<T> {}

impl<T> Trait<T> for () {}

pub fn foo<'a>() {
let _x: impl Trait<A<'a>> = ();
}

fn main() {}

0 comments on commit 814782b

Please sign in to comment.