Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #![warn(clippy::boxed_local)]
  2.  
  3. use std::thread;
  4.  
  5. trait ExampleTrait: Send + 'static {
  6. fn method(self: Box<Self>) {
  7. thread::spawn(move || {
  8. let _moved = self;
  9. });
  10. }
  11. }
  12.  
  13. fn main() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement