mirror of https://github.com/rust-lang/book
11 lines
348 B
Plaintext
11 lines
348 B
Plaintext
$ cargo run
|
|
Compiling variables v0.1.0 (file:///projects/variables)
|
|
error[E0308]: mismatched types
|
|
--> src/main.rs:3:14
|
|
|
|
|
3 | spaces = spaces.len();
|
|
| ^^^^^^^^^^^^ expected `&str`, found `usize`
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|
|
error: could not compile `variables` due to previous error
|