Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.95 KB | None | 0 0
  1. Compiling rust-phonebook v0.1.0 (file:///home/mkpankov/rust-phonebook.finished)
  2. src/main.rs:120:32: 122:69 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is not implemented for the type `[closure@src/main.rs:121:36: 122:68 sdb_:alloc::arc::Arc<std::sync::mutex::Mutex<postgres::Connection>>]` [E0277]
  3. src/main.rs:120 router.get("/api/v1/records",
  4. src/main.rs:121 move |req: &mut Request|
  5. src/main.rs:122 handlers::get_records(sdb_, req));
  6. src/main.rs:120:32: 122:69 help: run `rustc --explain E0277` to see a detailed explanation
  7. src/main.rs:126:32: 128:68 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is not implemented for the type `[closure@src/main.rs:127:36: 128:67 sdb_:alloc::arc::Arc<std::sync::mutex::Mutex<postgres::Connection>>]` [E0277]
  8. src/main.rs:126 router.get("/api/v1/records/:id",
  9. src/main.rs:127 move |req: &mut Request|
  10. src/main.rs:128 handlers::get_record(sdb_, req));
  11. src/main.rs:126:32: 128:68 help: run `rustc --explain E0277` to see a detailed explanation
  12. src/main.rs:132:32: 134:65 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is not implemented for the type `[closure@src/main.rs:133:33: 134:64 sdb_:alloc::arc::Arc<std::sync::mutex::Mutex<postgres::Connection>>]` [E0277]
  13. src/main.rs:132 router.post("/api/v1/records",
  14. src/main.rs:133 move |req: &mut Request|
  15. src/main.rs:134 handlers::add_record(sdb_, req));
  16. src/main.rs:132:32: 134:65 help: run `rustc --explain E0277` to see a detailed explanation
  17. src/main.rs:138:32: 140:71 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is not implemented for the type `[closure@src/main.rs:139:36: 140:70 sdb_:alloc::arc::Arc<std::sync::mutex::Mutex<postgres::Connection>>]` [E0277]
  18. src/main.rs:138 router.put("/api/v1/records/:id",
  19. src/main.rs:139 move |req: &mut Request|
  20. src/main.rs:140 handlers::update_record(sdb_, req));
  21. src/main.rs:138:32: 140:71 help: run `rustc --explain E0277` to see a detailed explanation
  22. src/main.rs:144:32: 146:74 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request::Request<'r, 'r>,)>` is not implemented for the type `[closure@src/main.rs:145:39: 146:73 sdb_:alloc::arc::Arc<std::sync::mutex::Mutex<postgres::Connection>>]` [E0277]
  23. src/main.rs:144 router.delete("/api/v1/records/:id",
  24. src/main.rs:145 move |req: &mut Request|
  25. src/main.rs:146 handlers::delete_record(sdb_, req));
  26. src/main.rs:144:32: 146:74 help: run `rustc --explain E0277` to see a detailed explanation
  27. src/main.rs:122:36: 122:68 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495]
  28. src/main.rs:122 handlers::get_records(sdb_, req));
  29. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30. src/main.rs:122:36: 122:68 note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the block at 122:35...
  31. src/main.rs:122 handlers::get_records(sdb_, req));
  32. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. src/main.rs:122:64: 122:67 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  34. src/main.rs:122 handlers::get_records(sdb_, req));
  35. ^~~
  36. src/main.rs:122:36: 122:68 note: but, the lifetime must be valid for the anonymous lifetime #3 defined on the block at 122:35...
  37. src/main.rs:122 handlers::get_records(sdb_, req));
  38. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. src/main.rs:122:64: 122:67 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  40. src/main.rs:122 handlers::get_records(sdb_, req));
  41. ^~~
  42. src/main.rs:128:36: 128:67 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495]
  43. src/main.rs:128 handlers::get_record(sdb_, req));
  44. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  45. src/main.rs:128:36: 128:67 note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the block at 128:35...
  46. src/main.rs:128 handlers::get_record(sdb_, req));
  47. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. src/main.rs:128:63: 128:66 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  49. src/main.rs:128 handlers::get_record(sdb_, req));
  50. ^~~
  51. src/main.rs:128:36: 128:67 note: but, the lifetime must be valid for the anonymous lifetime #3 defined on the block at 128:35...
  52. src/main.rs:128 handlers::get_record(sdb_, req));
  53. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. src/main.rs:128:63: 128:66 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  55. src/main.rs:128 handlers::get_record(sdb_, req));
  56. ^~~
  57. src/main.rs:134:33: 134:64 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495]
  58. src/main.rs:134 handlers::add_record(sdb_, req));
  59. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. src/main.rs:134:33: 134:64 note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the block at 134:32...
  61. src/main.rs:134 handlers::add_record(sdb_, req));
  62. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. src/main.rs:134:60: 134:63 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  64. src/main.rs:134 handlers::add_record(sdb_, req));
  65. ^~~
  66. src/main.rs:134:33: 134:64 note: but, the lifetime must be valid for the anonymous lifetime #3 defined on the block at 134:32...
  67. src/main.rs:134 handlers::add_record(sdb_, req));
  68. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  69. src/main.rs:134:60: 134:63 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  70. src/main.rs:134 handlers::add_record(sdb_, req));
  71. ^~~
  72. src/main.rs:140:36: 140:70 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495]
  73. src/main.rs:140 handlers::update_record(sdb_, req));
  74. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75. src/main.rs:140:36: 140:70 note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the block at 140:35...
  76. src/main.rs:140 handlers::update_record(sdb_, req));
  77. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  78. src/main.rs:140:66: 140:69 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  79. src/main.rs:140 handlers::update_record(sdb_, req));
  80. ^~~
  81. src/main.rs:140:36: 140:70 note: but, the lifetime must be valid for the anonymous lifetime #3 defined on the block at 140:35...
  82. src/main.rs:140 handlers::update_record(sdb_, req));
  83. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. src/main.rs:140:66: 140:69 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  85. src/main.rs:140 handlers::update_record(sdb_, req));
  86. ^~~
  87. src/main.rs:146:39: 146:73 error: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements [E0495]
  88. src/main.rs:146 handlers::delete_record(sdb_, req));
  89. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  90. src/main.rs:146:39: 146:73 note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the block at 146:38...
  91. src/main.rs:146 handlers::delete_record(sdb_, req));
  92. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  93. src/main.rs:146:69: 146:72 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  94. src/main.rs:146 handlers::delete_record(sdb_, req));
  95. ^~~
  96. src/main.rs:146:39: 146:73 note: but, the lifetime must be valid for the anonymous lifetime #3 defined on the block at 146:38...
  97. src/main.rs:146 handlers::delete_record(sdb_, req));
  98. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  99. src/main.rs:146:69: 146:72 note: ...so that expression is assignable (expected `&mut iron::request::Request<'_, '_>`, found `&mut iron::request::Request<'_, '_>`)
  100. src/main.rs:146 handlers::delete_record(sdb_, req));
  101. ^~~
  102. error: aborting due to 10 previous errors
  103. Could not compile `rust-phonebook`.
  104.  
  105. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement