mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
18 lines
187 B
Rust
18 lines
187 B
Rust
// 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();
|
|
}
|