mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Test case for format string highlighting of closing curlybrace
This commit is contained in:
parent
a27ede88a3
commit
780c89959a
2 changed files with 2 additions and 0 deletions
|
@ -218,6 +218,7 @@ fn main() {
|
|||
println!("{argument}", argument = "test"); // => "test"
|
||||
println!("{name} {}", 1, name = 2); // => "2 1"
|
||||
println!("{a} {c} {b}", a="a", b='b', c=3); // => "a 3 b"
|
||||
println!("{{{}}}", 2); // => "{2}"
|
||||
println!("Hello {:5}!", "x");
|
||||
println!("Hello {:1$}!", "x", 5);
|
||||
println!("Hello {1:0$}!", 5, "x");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue