mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
f922c8395d
Adding Adding Fixing small issues for PR Adding tests Removing unused binding Changing the wording on note Fixing PR comment
16 lines
650 B
Rust
16 lines
650 B
Rust
fn main() {
|
|
let bar = 3;
|
|
format!("{?:}", bar);
|
|
//~^ ERROR invalid format string: expected format parameter to occur after `:`
|
|
format!("{?:bar}");
|
|
//~^ ERROR invalid format string: expected format parameter to occur after `:`
|
|
format!("{?:?}", bar);
|
|
//~^ ERROR invalid format string: expected format parameter to occur after `:`
|
|
format!("{??}", bar);
|
|
//~^ ERROR invalid format string: expected `'}'`, found `'?'`
|
|
format!("{?;bar}");
|
|
//~^ ERROR invalid format string: expected `'}'`, found `'?'`
|
|
format!("{?:#?}", bar);
|
|
//~^ ERROR invalid format string: expected format parameter to occur after `:`
|
|
}
|