Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
associated-types
/
associated-types-for-unimpl-trait.rs
blob: 5b10d1dc2fdb50293c312a4a54de95a01e788cb3 [
file
] [
log
] [
blame
]
trait
Get
{
type
Value
;
fn
get
(&
self
)
->
<
Self
as
Get
>::
Value
;
}
trait
Other
{
fn
uhoh
<
U
:
Get
>(&
self
,
foo
:
U
,
bar
:
<
Self
as
Get
>::
Value
)
{}
//~^ ERROR the trait bound `Self: Get` is not satisfied
}
fn
main
()
{
}