Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
issues
/
issue-18819.rs
blob: 80db056e7dd3aa5ca2e7cc352366b080408827a2 [
file
] [
log
] [
blame
]
trait
Foo
{
type
Item
;
}
struct
X
;
impl
Foo
for
X
{
type
Item
=
bool
;
}
fn
print_x
(
_
:
&
Foo
<
Item
=
bool
>,
extra
:
&
str
)
{
println
!(
"{}"
,
extra
);
}
fn
main
()
{
print_x
(
X
);
//~^ ERROR E0061
}