Add explanation message for E0203
This commit is contained in:
parent
fe969f4ec6
commit
f8fb24f18f
3 changed files with 14 additions and 2 deletions
12
src/librustc_error_codes/error_codes/E0203.md
Normal file
12
src/librustc_error_codes/error_codes/E0203.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Having multiple relaxed default bounds is unsuported.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0203
|
||||
|
||||
trait Foo {}
|
||||
|
||||
struct S5<T>(*const T) where T: ?Foo + ?Sized;
|
||||
```
|
||||
|
||||
Here the type `T` cannot have a relaxed bound for both `Foo` and `Sized`
|
||||
Loading…
Add table
Add a link
Reference in a new issue