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