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