2022-11-29 08:56:43 +08:00
|
|
|
// Suggest print macro when user erroneously uses printf
|
2022-11-26 22:23:27 +01:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|