blob: f9a7f36de43f1fd09ba38e1a9c3b7bc928fbb56d [file] [log] [blame]
// 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();
}