Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Z:\RLBot Rust\rlbot-evan>cargo run
- Compiling rlbot-evan v0.1.0 (Z:\RLBot Rust\rlbot-evan)
- error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
- --> src\main.rs:157:3
- |
- 156 | let timeu = timef - self.time
- | - expected one of `.`, `::`, `;`, `?`, or an operator here
- 157 | Kinematics {
- | ^^^^^^^^^^ unexpected token
- error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
- --> src\main.rs:176:3
- |
- 175 | let timeu = timef - self.time
- | - expected one of `.`, `::`, `;`, `?`, or an operator here
- 176 | Kinematics {
- | ^^^^^^^^^^ unexpected token
- error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
- --> src\main.rs:196:3
- |
- 195 | let timeu = timef - self.time
- | - expected one of `.`, `::`, `;`, `?`, or an operator here
- 196 | Kinematics {
- | ^^^^^^^^^^ unexpected token
- error: expected one of `.`, `::`, `;`, `?`, or an operator, found `Kinematics`
- --> src\main.rs:217:3
- |
- 216 | let timeu = timef - self.time
- | - expected one of `.`, `::`, `;`, `?`, or an operator here
- 217 | Kinematics {
- | ^^^^^^^^^^ unexpected token
- error[E0412]: cannot find type `Type` in this scope
- --> src\main.rs:9:25
- |
- 9 | fn packetConverter(arg: Type) -> RetType {
- | ^^^^ not found in this scope
- error[E0412]: cannot find type `RetType` in this scope
- --> src\main.rs:9:34
- |
- 9 | fn packetConverter(arg: Type) -> RetType {
- | ^^^^^^^ not found in this scope
- error[E0425]: cannot find value `controllerState` in this scope
- --> src\main.rs:53:3
- |
- 53 | controllerState = Controller {
- | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `controllerSteer`
- error[E0425]: cannot find value `controllerState` in this scope
- --> src\main.rs:80:3
- |
- 80 | controllerState = Controller {
- | ^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `controllerSteer`
- warning: unused import: `std::io`
- --> src\main.rs:2:5
- |
- 2 | use std::io;
- | ^^^^^^^
- |
- = note: #[warn(unused_imports)] on by default
- warning: variant `kickoff` should have an upper camel case name
- --> src\main.rs:27:2
- |
- 27 | kickoff,
- | ^^^^^^^ help: convert the identifier to upper camel case: `Kickoff`
- |
- = note: #[warn(non_camel_case_types)] on by default
- warning: variant `attb` should have an upper camel case name
- --> src\main.rs:28:2
- |
- 28 | attb,
- | ^^^^ help: convert the identifier to upper camel case: `Attb`
- warning: type `kickoff` should have an upper camel case name
- --> src\main.rs:38:8
- |
- 38 | struct kickoff();
- | ^^^^^^^ help: convert the identifier to upper camel case: `Kickoff`
- warning: type `attb` should have an upper camel case name
- --> src\main.rs:73:8
- |
- 73 | struct attb();
- | ^^^^ help: convert the identifier to upper camel case: `Attb`
- error[E0599]: no method named `available` found for type `kickoff` in the current scope
- --> src\main.rs:6:23
- |
- 6 | println!("{}", state.available());
- | ------^^^^^^^^^
- | | |
- | | this is an associated function, not a method
- | help: use associated function syntax instead: `kickoff::available`
- ...
- 38 | struct kickoff();
- | ----------------- method `available` not found for this
- |
- = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
- note: the candidate is defined in the trait `StatePicker`
- --> src\main.rs:32:2
- |
- 32 | fn available(pack: Packet) -> bool;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = help: to disambiguate the method call, write `StatePicker::available(state)` instead
- = help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `available`, perhaps you need to implement it:
- candidate #1: `StatePicker`
- error[E0308]: mismatched types
- --> src\main.rs:13:29
- |
- 13 | fn setup(packet: Packet) -> Controller {
- | ----- ^^^^^^^^^^ expected struct `Controller`, found ()
- | |
- | this function's body doesn't return
- |
- = note: expected type `Controller`
- found type `()`
- error[E0308]: mismatched types
- --> src\main.rs:42:4
- |
- 42 | true
- | ^^^^ expected (), found bool
- |
- = note: expected type `()`
- found type `bool`
- error[E0308]: mismatched types
- --> src\main.rs:65:29
- |
- 65 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
- | ^
- | |
- | expected f64, found integer
- | help: use a float literal: `0.0`
- |
- = note: expected type `f64`
- found type `{integer}`
- error[E0308]: mismatched types
- --> src\main.rs:65:57
- |
- 65 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
- | ^
- | |
- | expected f64, found integer
- | help: use a float literal: `0.0`
- |
- = note: expected type `f64`
- found type `{integer}`
- error[E0308]: mismatched types
- --> src\main.rs:66:5
- |
- 66 | false
- | ^^^^^ expected (), found bool
- |
- = note: expected type `()`
- found type `bool`
- error[E0308]: mismatched types
- --> src\main.rs:92:29
- |
- 92 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
- | ^
- | |
- | expected f64, found integer
- | help: use a float literal: `0.0`
- |
- = note: expected type `f64`
- found type `{integer}`
- error[E0308]: mismatched types
- --> src\main.rs:92:57
- |
- 92 | if pack.ballLocation.x == 0 && pack.ballLocation.y == 0 {
- | ^
- | |
- | expected f64, found integer
- | help: use a float literal: `0.0`
- |
- = note: expected type `f64`
- found type `{integer}`
- error[E0308]: mismatched types
- --> src\main.rs:93:5
- |
- 93 | false
- | ^^^^^ expected (), found bool
- |
- = note: expected type `()`
- found type `bool`
- error: aborting due to 17 previous errors
- Some errors occurred: E0308, E0412, E0425, E0599.
- For more information about an error, try `rustc --explain E0308`.
- error: Could not compile `rlbot-evan`.
- To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement