Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
trait-bounds
/
restrict-assoc-type-of-generic-bound.fixed
blob: b3f5ad52db593083a7a4be10809238931ccd07b9 [
file
] [
log
] [
blame
]
// run-rustfix
pub trait
MyTrait
{
type T
;
fn bar
(
self
)
->
Self
::
T
;
}
pub fn foo
<
A
:
MyTrait
<
T
=
B
>,
B
>(
a
:
A
)
->
B
{
return
a
.
bar
();
//~ ERROR mismatched types
}
fn main
()
{}