mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 05:52:05 +00:00
18 lines
188 B
Rust
18 lines
188 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();
|
|
}
|