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