mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
rustfmt
This commit is contained in:
@@ -49,15 +49,20 @@ fn flip_comma_before_punct() {
|
||||
// See https://github.com/rust-analyzer/rust-analyzer/issues/1619
|
||||
// "Flip comma" assist shouldn't be applicable to the last comma in enum or struct
|
||||
// declaration body.
|
||||
check_assist_target(flip_comma,
|
||||
"pub enum Test { \
|
||||
A,<|> \
|
||||
}", ",");
|
||||
check_assist_target(
|
||||
flip_comma,
|
||||
"pub enum Test { \
|
||||
A,<|> \
|
||||
}",
|
||||
",",
|
||||
);
|
||||
|
||||
|
||||
check_assist_target(flip_comma,
|
||||
"pub struct Test { \
|
||||
foo: usize,<|> \
|
||||
}", ",");
|
||||
check_assist_target(
|
||||
flip_comma,
|
||||
"pub struct Test { \
|
||||
foo: usize,<|> \
|
||||
}",
|
||||
",",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user