Skip to content

Commit

Permalink
Add test for issue-75983
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 17, 2020
1 parent 23092c7 commit 59cc9de
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/ui/traits/trait-alias/issue-75983.rs
@@ -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();
}

0 comments on commit 59cc9de

Please sign in to comment.