Having multiple relaxed default bounds is unsupported.
Erroneous code example:
struct Bad<T: ?Sized + ?Send>{
inner: T
}
RunHere the type T
cannot have a relaxed bound for multiple default traits
(Sized
and Send
). This can be fixed by only using one relaxed bound.
struct Good<T: ?Sized>{
inner: T
}
Run