Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![warn(keyword_idents)]
- pub trait Trait { }
- impl Trait for &'static str { }
- macro_rules! m { () => { dyn Trait } }
- fn foo() -> Box<m!()> { Box::new("from foo") }
- fn bar() -> Box<dyn Trait> { Box::new("from bar") }
- fn main() { let _ = (foo(), bar()); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement