From ec23f4ed3fdb7f09a4398a32eaf486da22bd3ae9 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 10 Aug 2020 18:51:14 +0800 Subject: [PATCH] Add sample fix for E0749 Even though the description is clear but the solution may not be as straightforward. Adding a suggested fix. --- src/librustc_error_codes/error_codes/E0749.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_error_codes/error_codes/E0749.md b/src/librustc_error_codes/error_codes/E0749.md index 7a1a745b53c1..74cd2903f6d0 100644 --- a/src/librustc_error_codes/error_codes/E0749.md +++ b/src/librustc_error_codes/error_codes/E0749.md @@ -11,6 +11,7 @@ trait MyTrait { impl !MyTrait for u32 { type Foo = i32; // error! } +// impl !MyTrait for u32 {} // fix # fn main() {} ```