Skip to content

Instantly share code, notes, and snippets.

@vadixidav
Created November 15, 2015 03:04
Show Gist options
  • Save vadixidav/e41f9502aadd151acf36 to your computer and use it in GitHub Desktop.
Save vadixidav/e41f9502aadd151acf36 to your computer and use it in GitHub Desktop.
Compiling gpi v0.3.0 (file:///home/vadix/project/library/gpi)
src/mep.rs:105:18: 105:22 error: cannot infer an appropriate lifetime for automatic coercion due to conflicting requirements
src/mep.rs:105 mep: self,
^~~~
src/mep.rs:104:9: 104:17 note: first, the lifetime cannot outlive the expression at 104:8...
src/mep.rs:104 Box::new(ResultIterator{
^~~~~~~~
src/mep.rs:104:9: 104:17 note: ...so that a type/lifetime parameter is in scope here
src/mep.rs:104 Box::new(ResultIterator{
^~~~~~~~
src/mep.rs:105:18: 105:22 note: but, the lifetime must be valid for the expression at 105:17...
src/mep.rs:105 mep: self,
^~~~
src/mep.rs:105:18: 105:22 note: ...so that auto-reference is valid at the time of borrow
src/mep.rs:105 mep: self,
^~~~
src/mep.rs:105:18: 105:22 error: cannot infer an appropriate lifetime for automatic coercion due to conflicting requirements
src/mep.rs:105 mep: self,
^~~~
src/mep.rs:104:9: 104:17 note: first, the lifetime cannot outlive the expression at 104:8...
src/mep.rs:104 Box::new(ResultIterator{
^~~~~~~~
src/mep.rs:104:9: 104:17 note: ...so that a type/lifetime parameter is in scope here
src/mep.rs:104 Box::new(ResultIterator{
^~~~~~~~
src/mep.rs:105:18: 105:22 note: but, the lifetime must be valid for the expression at 105:17...
src/mep.rs:105 mep: self,
^~~~
src/mep.rs:105:18: 105:22 note: ...so that auto-reference is valid at the time of borrow
src/mep.rs:105 mep: self,
^~~~
src/mep.rs:212:27: 212:60 error: no method named `mutator` found for type `&mut mep::Mep<Ins, R, Param, F1, F2>` in the current scope
src/mep.rs:212 0 => self.mutator(&mut op.instruction, rng),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mep.rs:243:51: 243:120 error: no method named `processor` found for type `&'a mep::Mep<Ins, R, Param, F1, F2>` in the current scope
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mep.rs:243:78: 243:87 error: the type of this value must be known in this context
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second));
^~~~~~~~~
error: aborting due to 4 previous errors
src/mep.rs:212:27: 212:60 error: no method named `mutator` found for type `&mut mep::Mep<Ins, R, Param, F1, F2>` in the current scope
src/mep.rs:212 0 => self.mutator(&mut op.instruction, rng),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build failed, waiting for other jobs to finish...
src/mep.rs:243:51: 243:120 error: no method named `processor` found for type `&'a mep::Mep<Ins, R, Param, F1, F2>` in the current scope
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mep.rs:243:78: 243:87 error: the type of this value must be known in this context
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second));
^~~~~~~~~
src/mep.rs:266:16: 266:24 error: wrong number of type arguments: expected 5, found 1 [E0243]
src/mep.rs:266 let a: Mep<u32> = Mep::new(3, 3, 0..8);
^~~~~~~~
src/mep.rs:266:16: 266:24 help: run `rustc --explain E0243` to see a detailed explanation
src/mep.rs:266:27: 266:47 error: this function takes 7 parameters but 3 parameters were supplied [E0061]
src/mep.rs:266 let a: Mep<u32> = Mep::new(3, 3, 0..8);
^~~~~~~~~~~~~~~~~~~~
src/mep.rs:266:27: 266:47 help: run `rustc --explain E0061` to see a detailed explanation
src/mep.rs:268:22: 268:34 help: did you mean `inputs`?
src/mep.rs:268 assert_eq!(a.instructions, (0..8).collect::<Vec<_>>());
^~~~~~~~~~~~
src/mep.rs:268:9: 268:64 note: in this expansion of assert_eq! (defined in <std macros>)
<std macros>:5:8: 5:18 error: the type of this value must be known in this context
<std macros>:5 if ! ( * left_val == * right_val ) {
^~~~~~~~~~
src/mep.rs:268:9: 268:64 note: in this expansion of assert_eq! (defined in <std macros>)
<std macros>:5:22: 5:33 error: the type of this value must be known in this context
<std macros>:5 if ! ( * left_val == * right_val ) {
^~~~~~~~~~~
src/mep.rs:268:9: 268:64 note: in this expansion of assert_eq! (defined in <std macros>)
src/mep.rs:275:31: 275:93 error: this function takes 7 parameters but 3 parameters were supplied [E0061]
src/mep.rs:275 let mut clos = || Mep::new(3, 3, rng.gen_iter::<u32>().map(|x| x % 10).take(10));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mep.rs:275:31: 275:93 help: run `rustc --explain E0061` to see a detailed explanation
src/mep.rs:283:11: 283:53 error: this function takes 1 parameter but 2 parameters were supplied [E0061]
src/mep.rs:283 c.mutate(&mut rng, |ins: &mut u32| *ins = 2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/mep.rs:283:11: 283:53 help: run `rustc --explain E0061` to see a detailed explanation
src/mep.rs:284:11: 284:31 error: no method named `call` found for type `mep::Mep<_, rand::isaac::Isaac64Rng, _, _, _>` in the current scope
src/mep.rs:284 c.call(|_, (_, _)| {});
^~~~~~~~~~~~~~~~~~~~
src/mep.rs:284:11: 284:31 help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `call`, perhaps you need to implement it:
src/mep.rs:284:11: 284:31 help: candidate #1: `core::ops::Fn`
src/mep.rs:286:20: 286:34 error: attempted access of field `instructions` on type `mep::Mep<_, rand::isaac::Isaac64Rng, _, _, _>`, but no field with that name was found
src/mep.rs:286 assert_eq!(c.instructions, [0, 7, 5, 4, 2, 8, 5, 6, 0, 2]);
^~~~~~~~~~~~~~
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>)
src/mep.rs:286:22: 286:34 help: did you mean `inputs`?
src/mep.rs:286 assert_eq!(c.instructions, [0, 7, 5, 4, 2, 8, 5, 6, 0, 2]);
^~~~~~~~~~~~
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>)
<std macros>:5:8: 5:18 error: the type of this value must be known in this context
<std macros>:5 if ! ( * left_val == * right_val ) {
^~~~~~~~~~
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>)
<std macros>:5:22: 5:33 error: the type of this value must be known in this context
<std macros>:5 if ! ( * left_val == * right_val ) {
^~~~~~~~~~~
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>)
error: aborting due to 14 previous errors
Could not compile `gpi`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment