Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
dyn-compatibility
/
bounds.rs
blob: ed4a69129af3daa316f8beedb7fa1c930930aaf3 [
file
] [
log
] [
blame
]
// Traits with bounds mentioning `Self` are dyn-incompatible.
trait
X
{
type
U
:
PartialEq
<
Self
>;
}
fn
f
()
->
Box
<
dyn X
<
U
=
u32
>>
{
//~^ ERROR the trait `X` is not dyn compatible
loop
{}
}
fn
main
()
{}