about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNixon <nixon.emoony@gmail.com>2019-11-30 10:56:07 +0000
committerNixon <nixon.emoony@gmail.com>2019-11-30 11:22:20 +0000
commita52eb05ec6407054a0549b336fa746b62e1d22c0 (patch)
treea8625cfac13a70aa93fba6f50c148722824fc56a
parentf8fb24f18fcdea9b5ae7dcdb90fa68d618eb1e0b (diff)
downloadrust-a52eb05ec6407054a0549b336fa746b62e1d22c0.tar.gz
rust-a52eb05ec6407054a0549b336fa746b62e1d22c0.zip
Address review comments
-rw-r--r--src/librustc_error_codes/error_codes/E0203.md16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/librustc_error_codes/error_codes/E0203.md b/src/librustc_error_codes/error_codes/E0203.md
index 792ed3cb8bb..1edb519275f 100644
--- a/src/librustc_error_codes/error_codes/E0203.md
+++ b/src/librustc_error_codes/error_codes/E0203.md
@@ -1,12 +1,18 @@
-Having multiple relaxed default bounds is unsuported.
+Having multiple relaxed default bounds is unsupported.
 
 Erroneous code example:
 
 ```compile_fail,E0203
+struct Bad<T: ?Sized + ?Send>{
+    inner: T
+}
+```
 
-trait Foo {}
+Here the type `T` cannot have a relaxed bound for multiple default traits
+(`Sized` and `Send`). This can be fixed by only using one relaxed bound.
 
-struct S5<T>(*const T) where T: ?Foo + ?Sized;
 ```
-
-Here the type `T` cannot have a relaxed bound for both `Foo` and `Sized`
+struct Good<T: ?Sized>{
+    inner: T
+}
+```