Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
dyn-compatibility
/
bounds.rs
blob: 1e04d11c516cb9b6f556dc7a369a3232c2238765 [
file
] [
log
] [
blame
] [
edit
]
// 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` cannot be made into an object
loop
{}
}
fn
main
()
{}