2023-04-12 08:32:15 -05:00
|
|
|
#![feature(impl_trait_in_assoc_type)]
|
2022-02-17 07:55:58 -06:00
|
|
|
|
|
|
|
trait X {
|
|
|
|
type I;
|
|
|
|
fn f() -> Self::I;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> X for () {
|
2023-04-12 08:32:15 -05:00
|
|
|
//~^ ERROR `T` is not constrained by the impl trait, self type, or predicates
|
2022-02-17 07:55:58 -06:00
|
|
|
type I = impl Sized;
|
|
|
|
fn f() -> Self::I {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|