]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest_print_over_printf.rs
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / suggest_print_over_printf.rs
1 // Suggest print macro when user erroneously uses printf
2
3 fn main() {
4     let x = 4;
5     printf("%d", x);
6     //~^ ERROR cannot find function `printf` in this scope
7     //~| HELP you may have meant to use the `print` macro
8 }