Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.40 KB | None | 0 0
  1. Z:\RLBot Rust\rlbot-evan>cargo run
  2. Compiling rlbot-evan v0.1.0 (Z:\RLBot Rust\rlbot-evan)
  3. error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
  4. --> src\main.rs:157:3
  5. |
  6. 156 | let timeu = timef - self.time
  7. | - expected one of `.`, `::`, `;`, `?`, or an operator here
  8. 157 | Kinematics {
  9. | ^^^^^^^^^^ unexpected token
  10.  
  11. error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
  12. --> src\main.rs:176:3
  13. |
  14. 175 | let timeu = timef - self.time
  15. | - expected one of `.`, `::`, `;`, `?`, or an operator here
  16. 176 | Kinematics {
  17. | ^^^^^^^^^^ unexpected token
  18.  
  19. error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
  20. --> src\main.rs:196:3
  21. |
  22. 195 | let timeu = timef - self.time
  23. | - expected one of `.`, `::`, `;`, `?`, or an operator here
  24. 196 | Kinematics {
  25. | ^^^^^^^^^^ unexpected token
  26.  
  27. error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
  28. --> src\main.rs:217:3
  29. |
  30. 216 | let timeu = timef - self.time
  31. | - expected one of `.`, `::`, `;`, `?`, or an operator here
  32. 217 | Kinematics {
  33. | ^^^^^^^^^^ unexpected token
  34.  
  35. error[E0412]: cannot find type `Type` in this scope
  36. --> src\main.rs:9:25
  37. |
  38. 9 | fn packetConverter(arg: Type) -> RetType {
  39. | ^^^^ not found in this scope
  40.  
  41. error[E0412]: cannot find type `RetType` in this scope
  42. --> src\main.rs:9:34
  43. |
  44. 9 | fn packetConverter(arg: Type) -> RetType {
  45. | ^^^^^^^ not found in this scope
  46.  
  47. error[E0425]: cannot find value `controllerState` in this scope
  48. --> src\main.rs:53:3
  49. |
  50. 53 | controllerState = Controller {
  51. | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `controllerSteer`
  52.  
  53. error[E0425]: cannot find value `controllerState` in this scope
  54. --> src\main.rs:80:3
  55. |
  56. 80 | controllerState = Controller {
  57. | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `controllerSteer`
  58.  
  59. warning: unused import: `std::io`
  60. --> src\main.rs:2:5
  61. |
  62. 2 | use std::io;
  63. | ^^^^^^^
  64. |
  65. = note: #[warn(unused_imports)] on by default
  66.  
  67. warning: variant `kickoff` should have an upper camel case name
  68. --> src\main.rs:27:2
  69. |
  70. 27 | kickoff,
  71. | ^^^^^^^ help: convert the identifier to upper camel case: `Kickoff`
  72. |
  73. = note: #[warn(non_camel_case_types)] on by default
  74.  
  75. warning: variant `attb` should have an upper camel case name
  76. --> src\main.rs:28:2
  77. |
  78. 28 | attb,
  79. | ^^^^ help: convert the identifier to upper camel case: `Attb`
  80.  
  81. warning: type `kickoff` should have an upper camel case name
  82. --> src\main.rs:38:8
  83. |
  84. 38 | struct kickoff();
  85. | ^^^^^^^ help: convert the identifier to upper camel case: `Kickoff`
  86.  
  87. warning: type `attb` should have an upper camel case name
  88. --> src\main.rs:73:8
  89. |
  90. 73 | struct attb();
  91. | ^^^^ help: convert the identifier to upper camel case: `Attb`
  92.  
  93. error[E0599]: no method named `available` found for type `kickoff` in the current scope
  94. --> src\main.rs:6:23
  95. |
  96. 6 | println!("{}", state.available());
  97. | ------^^^^^^^^^
  98. | | |
  99. | | this is an associated function, not a method
  100. | help: use associated function syntax instead: `kickoff::available`
  101. ...
  102. 38 | struct kickoff();
  103. | ----------------- method `available` not found for this
  104. |
  105. = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
  106. note: the candidate is defined in the trait `StatePicker`
  107. --> src\main.rs:32:2
  108. |
  109. 32 | fn available(pack: Packet) -> bool;
  110. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  111. = help: to disambiguate the method call, write `StatePicker::available(state)` instead
  112. = help: items from traits can only be used if the trait is implemented and in scope
  113. = note: the following trait defines an item `available`, perhaps you need to implement it:
  114. candidate #1: `StatePicker`
  115.  
  116. error[E0308]: mismatched types
  117. --> src\main.rs:13:29
  118. |
  119. 13 | fn setup(packet: Packet) -> Controller {
  120. | ----- ^^^^^^^^^^ expected struct `Controller`, found ()
  121. | |
  122. | this function's body doesn't return
  123. |
  124. = note: expected type `Controller`
  125. found type `()`
  126.  
  127. error[E0308]: mismatched types
  128. --> src\main.rs:42:4
  129. |
  130. 42 | true
  131. | ^^^^ expected (), found bool
  132. |
  133. = note: expected type `()`
  134. found type `bool`
  135.  
  136. error[E0308]: mismatched types
  137. --> src\main.rs:65:29
  138. |
  139. 65 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
  140. | ^
  141. | |
  142. | expected f64, found integer
  143. | help: use a float literal: `0.0`
  144. |
  145. = note: expected type `f64`
  146. found type `{integer}`
  147.  
  148. error[E0308]: mismatched types
  149. --> src\main.rs:65:57
  150. |
  151. 65 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
  152. | ^
  153. | |
  154. | expected f64, found integer
  155. | help: use a float literal: `0.0`
  156. |
  157. = note: expected type `f64`
  158. found type `{integer}`
  159.  
  160. error[E0308]: mismatched types
  161. --> src\main.rs:66:5
  162. |
  163. 66 | false
  164. | ^^^^^ expected (), found bool
  165. |
  166. = note: expected type `()`
  167. found type `bool`
  168.  
  169. error[E0308]: mismatched types
  170. --> src\main.rs:92:29
  171. |
  172. 92 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
  173. | ^
  174. | |
  175. | expected f64, found integer
  176. | help: use a float literal: `0.0`
  177. |
  178. = note: expected type `f64`
  179. found type `{integer}`
  180.  
  181. error[E0308]: mismatched types
  182. --> src\main.rs:92:57
  183. |
  184. 92 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
  185. | ^
  186. | |
  187. | expected f64, found integer
  188. | help: use a float literal: `0.0`
  189. |
  190. = note: expected type `f64`
  191. found type `{integer}`
  192.  
  193. error[E0308]: mismatched types
  194. --> src\main.rs:93:5
  195. |
  196. 93 | false
  197. | ^^^^^ expected (), found bool
  198. |
  199. = note: expected type `()`
  200. found type `bool`
  201.  
  202. error: aborting due to 17 previous errors
  203.  
  204. Some errors occurred: E0308, E0412, E0425, E0599.
  205. For more information about an error, try `rustc --explain E0308`.
  206. error: Could not compile `rlbot-evan`.
  207.  
  208. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement