mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Merge #6887
6887: Add `#` to canonical test example r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
95f3dcd909
1 changed files with 4 additions and 4 deletions
|
@ -96,19 +96,19 @@ When using multiline fixtures, use unindented raw string literals:
|
||||||
fn inline_field_shorthand() {
|
fn inline_field_shorthand() {
|
||||||
check_assist(
|
check_assist(
|
||||||
inline_local_variable,
|
inline_local_variable,
|
||||||
r"
|
r#"
|
||||||
struct S { foo: i32}
|
struct S { foo: i32}
|
||||||
fn main() {
|
fn main() {
|
||||||
let <|>foo = 92;
|
let <|>foo = 92;
|
||||||
S { foo }
|
S { foo }
|
||||||
}
|
}
|
||||||
",
|
"#,
|
||||||
r"
|
r#"
|
||||||
struct S { foo: i32}
|
struct S { foo: i32}
|
||||||
fn main() {
|
fn main() {
|
||||||
S { foo: 92 }
|
S { foo: 92 }
|
||||||
}
|
}
|
||||||
",
|
"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue