This code:
#[deprecated]
fn foo() {
format_args!("bla");
}
gives this warning:
warning: use of deprecated item, #[warn(deprecated)] on by default
--> <anon>:3:18
3 |> format_args!("bla");
|> ^^^^^
<anon>:3:5: 3:25: note: in this expansion of format_args!
in current stable and nightly