Skip to content

Instantly share code, notes, and snippets.

@jamii
Created March 3, 2015 19:43
Show Gist options
  • Save jamii/ff1809f26d27020c5fa7 to your computer and use it in GitHub Desktop.
Save jamii/ff1809f26d27020c5fa7 to your computer and use it in GitHub Desktop.
Compiling bigcheck v0.0.1 (file:///home/jamie/bigcheck)
src/lib.rs:68:45: 68:63 error: cannot infer an appropriate lifetime due to conflicting requirements
src/lib.rs:68 let result = std::thread::spawn(|| function(input)).join();
^~~~~~~~~~~~~~~~~~
src/lib.rs:68:48: 68:56 note: first, the lifetime cannot outlive the expression at 68:47...
src/lib.rs:68 let result = std::thread::spawn(|| function(input)).join();
^~~~~~~~
src/lib.rs:68:48: 68:56 note: ...so that auto-reference is valid at the time of borrow
src/lib.rs:68 let result = std::thread::spawn(|| function(input)).join();
^~~~~~~~
src/lib.rs:68:45: 68:63 note: but, the lifetime must be valid for the expression at 68:44...
src/lib.rs:68 let result = std::thread::spawn(|| function(input)).join();
^~~~~~~~~~~~~~~~~~
src/lib.rs:68:45: 68:63 note: ...so type `[closure src/lib.rs:68:45: 68:63]` of expression is valid during the expression
src/lib.rs:68 let result = std::thread::spawn(|| function(input)).join();
^~~~~~~~~~~~~~~~~~
src/lib.rs:75:53: 75:83 error: cannot infer an appropriate lifetime due to conflicting requirements
src/lib.rs:75 let result = std::thread::spawn(|| function(next_shrunk_input)).join();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:75:34: 75:52 note: first, the lifetime cannot outlive the expression at 75:33...
src/lib.rs:75 let result = std::thread::spawn(|| function(next_shrunk_input)).join();
^~~~~~~~~~~~~~~~~~
src/lib.rs:75:34: 75:52 note: ...so that the type `[closure src/lib.rs:75:53: 75:83]` will meet its required lifetime bounds
src/lib.rs:75 let result = std::thread::spawn(|| function(next_shrunk_input)).join();
^~~~~~~~~~~~~~~~~~
src/lib.rs:75:53: 75:83 note: but, the lifetime must be valid for the expression at 75:52...
src/lib.rs:75 let result = std::thread::spawn(|| function(next_shrunk_input)).join();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:75:53: 75:83 note: ...so type `[closure src/lib.rs:75:53: 75:83]` of expression is valid during the expression
src/lib.rs:75 let result = std::thread::spawn(|| function(next_shrunk_input)).join();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Could not compile `bigcheck`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment