Skip to content

Commit 59cc9de

Browse files
committed
Add test for issue-75983
1 parent 23092c7 commit 59cc9de

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// check-pass
2+
3+
#![feature(trait_alias)]
4+
5+
struct Bar;
6+
trait Foo {}
7+
impl Foo for Bar {}
8+
9+
trait Baz = Foo where Bar: Foo;
10+
11+
fn new() -> impl Baz {
12+
Bar
13+
}
14+
15+
fn main() {
16+
let _ = new();
17+
}

0 commit comments

Comments
 (0)