-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Labels
Description
#![feature(rustc_attrs)]
#[rustc_builtin_macro]
macro_rules! format_args {
() => {};
}
fn main() {
let s = format_args!("Heyo", 15, 14);
let s = format_args!("Heyo", a = 15, b = 14);
}
errors out with:
error: multiple unused formatting arguments
--> test.rs:11:34
|
11 | let s = format_args!("Heyo", 15, 14);
| ------ ^^ ^^ argument never used
| | |
| | argument never used
| multiple missing formatting specifiers
error: multiple unused formatting arguments
--> test.rs:12:38
|
12 | let s = format_args!("Heyo", a = 15, b = 14);
| ------ ^^ ^^ named argument never used
| | |
| | named argument never used
| multiple missing formatting specifiers
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo