about summary refs log tree commit diff
path: root/tests/ui/traits/alias/issue-75983.rs
blob: 0e81d4c3aacddff3ccf2fb3341512d1b67687d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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();
}