Add test for issue-75983

This commit is contained in:
Yuki Okushi 2020-10-15 08:36:24 +09:00
parent 23092c7491
commit 59cc9de039

View file

@ -0,0 +1,17 @@
// check-pass
#![feature(trait_alias)]
struct Bar;
trait Foo {}
impl Foo for Bar {}
trait Baz = Foo where Bar: Foo;
fn new() -> impl Baz {
Bar
}
fn main() {
let _ = new();
}