diff options
| author | Nixon <nixon.emoony@gmail.com> | 2019-11-29 22:16:26 +0000 |
|---|---|---|
| committer | Nixon <nixon.emoony@gmail.com> | 2019-11-29 22:42:38 +0000 |
| commit | f8fb24f18fcdea9b5ae7dcdb90fa68d618eb1e0b (patch) | |
| tree | d39eb261e30f6c47ce477e89cea6b48e49b97b9f /src/librustc_error_codes/error_codes | |
| parent | fe969f4ec67a5bd317818cbc7a648c5795af15fa (diff) | |
| download | rust-f8fb24f18fcdea9b5ae7dcdb90fa68d618eb1e0b.tar.gz rust-f8fb24f18fcdea9b5ae7dcdb90fa68d618eb1e0b.zip | |
Add explanation message for E0203
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0203.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0203.md b/src/librustc_error_codes/error_codes/E0203.md new file mode 100644 index 00000000000..792ed3cb8bb --- /dev/null +++ b/src/librustc_error_codes/error_codes/E0203.md @@ -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` |
