blob: 5d9a224ccd6bb113443a20b4cc3af2fdb14c4b48 [file] [log] [blame]
#![feature(return_position_impl_trait_in_trait)]
trait Foo<T> {
fn foo<F2>(self) -> impl Foo<T>;
}
struct Bar;
impl Foo<char> for Bar {
fn foo<F2: Foo<u8>>(self) -> impl Foo<u8> {
//~^ ERROR: the trait bound `impl Foo<u8>: Foo<char>` is not satisfied [E0277]
self
}
}
fn main() {}