Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![warn(clippy::boxed_local)]
- use std::thread;
- trait ExampleTrait: Send + 'static {
- fn method(self: Box<Self>) {
- thread::spawn(move || {
- let _moved = self;
- });
- }
- }
- fn main() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement