mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
cargo fmt
This commit is contained in:
parent
82ae228d98
commit
6d2154e409
1 changed files with 6 additions and 3 deletions
|
@ -964,13 +964,15 @@ fn main() { let foo_test = fo$0o(); }
|
||||||
);
|
);
|
||||||
|
|
||||||
// use literal `crate` in path
|
// use literal `crate` in path
|
||||||
check(r#"
|
check(
|
||||||
|
r#"
|
||||||
pub struct X;
|
pub struct X;
|
||||||
|
|
||||||
fn foo() -> crate::X { X }
|
fn foo() -> crate::X { X }
|
||||||
|
|
||||||
fn main() { f$0oo(); }
|
fn main() { f$0oo(); }
|
||||||
"#, expect![[r#"
|
"#,
|
||||||
|
expect![[r#"
|
||||||
*foo*
|
*foo*
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
@ -980,7 +982,8 @@ fn main() { f$0oo(); }
|
||||||
```rust
|
```rust
|
||||||
fn foo() -> crate::X
|
fn foo() -> crate::X
|
||||||
```
|
```
|
||||||
"#]]);
|
"#]],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue