From f8fb24f18fcdea9b5ae7dcdb90fa68d618eb1e0b Mon Sep 17 00:00:00 2001 From: Nixon Date: Fri, 29 Nov 2019 22:16:26 +0000 Subject: Add explanation message for E0203 --- src/librustc_error_codes/error_codes/E0203.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/librustc_error_codes/error_codes/E0203.md (limited to 'src/librustc_error_codes/error_codes') 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(*const T) where T: ?Foo + ?Sized; +``` + +Here the type `T` cannot have a relaxed bound for both `Foo` and `Sized` -- cgit 1.4.1-3-g733a5