Created
July 3, 2016 22:09
-
-
Save mackwic/6f2bc68f832cfe24aa392e9ab7fd94c7 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
Compiling rspec v0.1.0 (file:///Users/thomas/Documents/projects/rust/rspec) | |
src/runner.rs:63:37: 63:58 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495] | |
src/runner.rs:63 let befores = befores.chain(child_ctx.before_each.iter_mut()); | |
^~~~~~~~~~~~~~~~~~~~~ | |
src/runner.rs:64:23: 64:43 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495] | |
src/runner.rs:64 let afters = child_ctx.after_each.iter_mut().chain(afters.into_iter()); | |
^~~~~~~~~~~~~~~~~~~~ | |
src/runner.rs:47:5: 87:6 help: consider using an explicit lifetime parameter as shown: fn run_and_recurse<'inner1, 'inner2, 'outer, It1, | |
It2>(report: &'inner1 mut TestReport, | |
child_ctx: &'inner2 mut Context<'outer>, | |
befores: &'inner2 It1, afters: &'inner2 It2) | |
-> Result<(), ()> where It1: Iterator<Item = | |
&'inner3 mut Box<BeforeFunction<'outer>>>, It2: Iterator<Item = | |
&'inner4 mut Box<AfterFunction<'outer>>>, 'outer:'inner1, 'outer:'inner2, | |
'outer:'inner3, 'outer:'inner4 | |
src/runner.rs:47 fn run_and_recurse<'inner1, 'inner2, 'inner3, 'inner4, 'outer, It1, It2>( | |
^ | |
error: aborting due to 2 previous errors | |
Build failed, waiting for other jobs to finish... | |
src/runner.rs:63:37: 63:58 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495] | |
src/runner.rs:63 let befores = befores.chain(child_ctx.before_each.iter_mut()); | |
^~~~~~~~~~~~~~~~~~~~~ | |
src/runner.rs:64:23: 64:43 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495] | |
src/runner.rs:64 let afters = child_ctx.after_each.iter_mut().chain(afters.into_iter()); | |
^~~~~~~~~~~~~~~~~~~~ | |
src/runner.rs:47:5: 87:6 help: consider using an explicit lifetime parameter as shown: fn run_and_recurse<'inner1, 'inner2, 'outer, It1, | |
It2>(report: &'inner1 mut TestReport, | |
child_ctx: &'inner2 mut Context<'outer>, | |
befores: &'inner2 It1, afters: &'inner2 It2) | |
-> Result<(), ()> where It1: Iterator<Item = | |
&'inner3 mut Box<BeforeFunction<'outer>>>, It2: Iterator<Item = | |
&'inner4 mut Box<AfterFunction<'outer>>>, 'outer:'inner1, 'outer:'inner2, | |
'outer:'inner3, 'outer:'inner4 | |
src/runner.rs:47 fn run_and_recurse<'inner1, 'inner2, 'inner3, 'inner4, 'outer, It1, It2>( | |
^ | |
error: aborting due to 2 previous errors | |
error: Could not compile `rspec`. | |
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