Created
June 12, 2018 12:13
-
-
Save mitsuhiko/bef20e36c69d80f1ed22241097d52b19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn add_scope_processor<F, B>(&mut self, f: F) | |
where | |
F: Fn(&mut Event) + Sync + Send, | |
Box<F>: im::shared::Shared<Box<Fn(&mut Event) + Sync + Send>>, | |
{ | |
self.scope_processors = self.scope_processors.push_back(Box::new(f)); | |
} | |
error[E0277]: the trait bound `for<'r, 's> std::ops::Fn(&'r mut sentry::v7::Event<'s>) + std::marker::Sync + std::marker::Send + 'static: std::marker::Sized` is not satisfied | |
--> examples/scope-processors.rs:15:15 | |
| | |
15 | scope.add_scope_processor(|event| { | |
| ^^^^^^^^^^^^^^^^^^^ `for<'r, 's> std::ops::Fn(&'r mut sentry::v7::Event<'s>) + std::marker::Sync + std::marker::Send + 'static` does not have a constant size known at compile-time | |
| | |
= help: the trait `std::marker::Sized` is not implemented for `for<'r, 's> std::ops::Fn(&'r mut sentry::v7::Event<'s>) + std::marker::Sync + std::marker::Send + 'static` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment