blob: a4dceedbf1fd15ddaa0d93929ee059bb78f59a85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Having duplicate relaxed default bounds is unsupported.
Erroneous code example:
```compile_fail,E0203
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:
```
struct Good<T: ?Sized>{
inner: T
}
```
|