Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.18 KB | None | 0 0
  1. trait Foo {
  2.  
  3. }
  4.  
  5. trait Bar {
  6.  
  7. }
  8.  
  9. impl Bar for Foo {
  10.  
  11. }
  12.  
  13. impl Foo for String {
  14.  
  15. }
  16.  
  17. fn main() {
  18.     let s = "hello".to_string();
  19.     let v: Box<Bar> = Box::new(s);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement