urlyy commented on issue #2658:
URL: https://github.com/apache/fory/issues/2658#issuecomment-3332039737

   @chaokunyang 
   ```rust
   trait OtherSerializer {
       fn read() -> Vec<u8>;
   }
   impl OtherSerializer for Animal {
       fn read() -> Vec<u8> {
           todo!()
       }
   }
   #[derive(Fory, Debug, PartialEq, Default)]
   struct Animal {
       category: String,
   }
   ```
   this case will compile error:
   ```
   multiple applicable items in scope [E0034]
   Note: candidate #1 is defined in an impl of the trait `OtherSerializer` for 
the type `complex_struct::Animal`
   Note: candidate #2 is defined in an impl of the trait `Serializer` for the 
type `complex_struct::Animal`
   ```
   So I think The 2nd point is still important.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to