Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-23336.rs
blob: cd71d7eed897929bd314235ab5ba12e119c06611 [
file
] [
log
] [
blame
]
// run-pass
pub
trait
Data
{
fn
doit
(&
self
)
{}
}
impl
<
T
>
Data
for
T
{}
pub
trait
UnaryLogic
{
type
D
:
Data
;
}
impl
UnaryLogic
for
()
{
type
D
=
i32
;
}
pub
fn
crashes
<
T
:
UnaryLogic
>(
t
:
T
::
D
)
{
t
.
doit
();
}
fn
main
()
{
crashes
::<()>(
0
);
}