Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait Foo {
- }
- trait Bar {
- }
- impl Bar for Foo {
- }
- impl Foo for String {
- }
- fn main() {
- let s = "hello".to_string();
- let v: Box<Bar> = Box::new(s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement