Skip to content

Instantly share code, notes, and snippets.

@tdfischer
Created January 9, 2015 02:43
Show Gist options
  • Save tdfischer/edbe4db79c2321e3d602 to your computer and use it in GitHub Desktop.
Save tdfischer/edbe4db79c2321e3d602 to your computer and use it in GitHub Desktop.
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:22:9: 25:10 error: cannot infer an appropriate lifetime due to conflicting requirements
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:22 |sbox,e| {
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:23 let s: sbox_ptr = mem::transmute(sbox);
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:24 event_cb (s, e);
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:25 }
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:21:25: 21:37 note: first, the lifetime cannot outlive the expression at 21:24...
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:21 let sbox = Box::new(Sandbox::new(
^~~~~~~~~~~~
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:21:25: 21:37 note: ...so that the declared lifetime parameter bounds are satisfied
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:21 let sbox = Box::new(Sandbox::new(
^~~~~~~~~~~~
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:21:25: 26:6 note: but, the lifetime must be valid for the call at 21:24...
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:21 let sbox = Box::new(Sandbox::new(
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:22 |sbox,e| {
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:23 let s: sbox_ptr = mem::transmute(sbox);
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:24 event_cb (s, e);
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:25 }
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:26 ));
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:22:9: 25:10 note: ...so that argument is valid for the call
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:22 |sbox,e| {
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:23 let s: sbox_ptr = mem::transmute(sbox);
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:24 event_cb (s, e);
/home/tdfischer/Projects/ripple/codius/rust/codius-sandbox-core/src/lib.rs:25 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment