Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(dead_code)]
- trait Trait {
- fn func1() {} // default impl
- fn func2 ();
- }
- struct Obj1();
- struct Obj2();
- impl Trait for Obj1 {
- fn func2 () {}
- }
- impl Trait for Obj2 {
- fn func1 () {}
- fn func2 () {}
- }
- fn main(){}
Add Comment
Please, Sign In to add comment