cargo build
Compiling guess v0.1.0 (D:\data\code\rust\guess)
error[E0599]: no method named `times` found for type `{integer}` in the current scope
--> src\main.rs:2:7
|
2 | 5.times(|| println!("Hello Rust"));
| ^^^^^ method not found in `{integer}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: could not compile `guess`.
Compiling guess v0.1.0 (D:\data\code\rust\guess)
error[E0599]: no method named `days` found for type `{integer}` in the current scope
--> src\main.rs:2:7
|
2 | 2.days().from_now();
| ^^^^ method not found in `{integer}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: could not compile `guess`.
To learn more, run the command again with --verbose.
页码与行数
文本或排版错误
代码错误
Rust版本
错误信息