]> git.lizzy.rs Git - rust.git/commitdiff
Add sample fix for E0749
authorIvan Tham <pickfire@riseup.net>
Mon, 10 Aug 2020 10:51:14 +0000 (18:51 +0800)
committerGitHub <noreply@github.com>
Mon, 10 Aug 2020 10:51:14 +0000 (18:51 +0800)
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

index 7a1a745b53c12b606b49b93d7ae2bdb0ae158734..74cd2903f6d01575d5531fd63905110e228e7503 100644 (file)
@@ -11,6 +11,7 @@ trait MyTrait {
 impl !MyTrait for u32 {
     type Foo = i32; // error!
 }
+// impl !MyTrait for u32 {} // fix
 # fn main() {}
 ```