fn main() {
let a=1;
let b=a.copy();
}
Errors:
Compiling playground v0.0.1 (/playground)
error[E0689]: can't call method `copy` on ambiguous numeric type `{integer}`
--> src/main.rs:3:13
|
3 | let b=a.copy();
| ^^^^
|
help: you must specify a type for this binding, like `i32`
|
2 | let a: i32=1;
| ~~~~~~
For more information about this error, try `rustc --explain E0689`.
error: could not compile `playground` due to previous error