We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fb24f commit a52eb05Copy full SHA for a52eb05
src/librustc_error_codes/error_codes/E0203.md
@@ -1,12 +1,18 @@
1
-Having multiple relaxed default bounds is unsuported.
+Having multiple relaxed default bounds is unsupported.
2
3
Erroneous code example:
4
5
```compile_fail,E0203
6
+struct Bad<T: ?Sized + ?Send>{
7
+ inner: T
8
+}
9
+```
10
-trait Foo {}
11
+Here the type `T` cannot have a relaxed bound for multiple default traits
12
+(`Sized` and `Send`). This can be fixed by only using one relaxed bound.
13
-struct S5<T>(*const T) where T: ?Foo + ?Sized;
14
```
-
-Here the type `T` cannot have a relaxed bound for both `Foo` and `Sized`
15
+struct Good<T: ?Sized>{
16
17
18
0 commit comments