2023-04-12 08:32:15 -05:00
|
|
|
#![feature(impl_trait_in_assoc_type)]
|
2022-02-17 07:55:58 -06:00
|
|
|
|
|
|
|
trait Bar {
|
|
|
|
type E;
|
|
|
|
}
|
|
|
|
impl<S> Bar for S {
|
|
|
|
type E = impl ; //~ ERROR at least one trait must be specified
|
2023-04-12 08:32:15 -05:00
|
|
|
fn foo() -> Self::E {
|
|
|
|
//~^ ERROR `foo` is not a member
|
2022-02-17 07:55:58 -06:00
|
|
|
|_| true //~ ERROR type annotations needed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fn main() {}
|