rust/tests/ui/traits/alias/issue-75983.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
187 B
Rust
Raw Normal View History

2020-10-14 18:36:24 -05:00
// 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();
}