mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
9 lines
225 B
Rust
9 lines
225 B
Rust
// Suggest print macro when user erroneously uses printf
|
|
|
|
fn main() {
|
|
let x = 4;
|
|
printf("%d", x);
|
|
//~^ ERROR cannot find function `printf` in this scope
|
|
//~| HELP you may have meant to use the `print` macro
|
|
}
|