summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-87340.rs
blob: f0f6d2bb61c71aa39068b3a964653a47e5c8d50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(type_alias_impl_trait)]

trait X {
    type I;
    fn f() -> Self::I;
}

impl<T> X for () {
//~^ ERROR `T` is not constrained by the impl trait, self type, or predicates
    type I = impl Sized;
    fn f() -> Self::I {}
}

fn main() {}