Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
suggestions
/
suggest_print_over_printf.rs
blob: 124ddec50cbbefd45085aef500ea20cc0c82f36c [
file
] [
log
] [
blame
]
// 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
}