Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Point<T, U> {
- t: T,
- u: U,
- }
- // error[E0592]: duplicate definitions with name `print_something_nice`
- impl Point<u8, u32> {
- pub fn print_something_nice(&self) {
- println!("Copy")
- }
- }
- impl Point<u32, u8> {
- pub fn print_something_nice(&self) {
- println!("Clone")
- }
- }
Add Comment
Please, Sign In to add comment