summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/issue-65384.rs
blob: 9a119c4d2e0aa76f542c9e3ff30bdb58a42d94d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(type_alias_impl_trait)]
#![allow(incomplete_features)]

trait MyTrait {}

impl MyTrait for () {}

type Bar = impl MyTrait;

impl MyTrait for Bar {}
//~^ ERROR: cannot implement trait on type alias impl trait

fn bazr() -> Bar { }

fn main() {}