Skip to content

Commit a52eb05

Browse files
committed
Address review comments
1 parent f8fb24f commit a52eb05

File tree

1 file changed

+11
-5
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+11
-5
lines changed
+11-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
Having multiple relaxed default bounds is unsuported.
1+
Having multiple relaxed default bounds is unsupported.
22

33
Erroneous code example:
44

55
```compile_fail,E0203
6+
struct Bad<T: ?Sized + ?Send>{
7+
inner: T
8+
}
9+
```
610

7-
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.
813

9-
struct S5<T>(*const T) where T: ?Foo + ?Sized;
1014
```
11-
12-
Here the type `T` cannot have a relaxed bound for both `Foo` and `Sized`
15+
struct Good<T: ?Sized>{
16+
inner: T
17+
}
18+
```

0 commit comments

Comments
 (0)