Having duplicate relaxed default bounds is unsupported.
Erroneous code example:
#![allow(unused)]
fn main() {
struct Bad<T: ?Sized + ?Sized>{
inner: T,
}
} Here the type parameter T cannot have duplicate relaxed bounds for default trait Sized. This can be fixed by only using one relaxed bound:
#![allow(unused)]
fn main() {
struct Good<T: ?Sized>{
inner: T
}
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0203.html