Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-18819.rs
blob: e634c55f824fdf770f04658e7181b4ccdb79d119 [
file
] [
log
] [
blame
]
trait
Foo
{
type
Item
;
}
struct
X
;
impl
Foo
for
X
{
type
Item
=
bool
;
}
fn
print_x
(
_
:
&
dyn
Foo
<
Item
=
bool
>,
extra
:
&
str
)
{
println
!(
"{}"
,
extra
);
}
fn
main
()
{
print_x
(
X
);
//~^ ERROR E0061
}