Add sample fix for E0749

Even though the description is clear but the solution may not be as straightforward.
Adding a suggested fix.
This commit is contained in:
Ivan Tham 2020-08-10 18:51:14 +08:00 committed by GitHub
parent 13290e83a6
commit ec23f4ed3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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