Add explanation message for E0203

This commit is contained in:
Nixon 2019-11-29 22:16:26 +00:00
parent fe969f4ec6
commit f8fb24f18f
3 changed files with 14 additions and 2 deletions

View 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`