Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
issue-21837.rs
blob: 213119bd21c438148c358b7a7fb6f91535b537d8 [
file
] [
log
] [
blame
] [
edit
]
pub
trait
Bound
{}
pub
struct
Foo
<
T
:
Bound
>(
T
);
pub
trait
Trait1
{}
impl
<
T
:
Bound
>
Trait1
for
Foo
<
T
>
{}
pub
trait
Trait2
{}
impl
<
T
>
Trait2
for
Foo
<
T
>
{}
//~ ERROR the trait bound `T: Bound` is not satisfied
fn
main
()
{}