Sign in
android
/
toolchain
/
rustc
/
43f0694b1feb1296004d84509e01177159e71be0
/
.
/
src
/
test
/
ui
/
chalkify
/
trait_implied_bound.rs
blob: 8a2e1cf599008acd80bcb98765711110013d3642 [
file
] [
log
] [
blame
]
// run-pass
// compile-flags: -Z chalk
trait
Foo
{
}
trait
Bar
<
U
>
where U
:
Foo
{
}
impl
Foo
for
i32
{
}
impl
Bar
<
i32
>
for
i32
{
}
fn
only_foo
<
T
:
Foo
>()
{
}
fn
only_bar
<
U
,
T
:
Bar
<
U
>>()
{
only_foo
::<
U
>()
}
fn
main
()
{
only_bar
::<
i32
,
i32
>()
}