Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
return-dont-satisfy-bounds.rs
blob: ad73b12feb5317d893a264973a4a2a73027e5d32 [
file
] [
log
] [
blame
]
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
()
{}