cargo fmt

This commit is contained in:
Dezhi Wu 2021-09-07 14:50:33 +08:00
parent 82ae228d98
commit 6d2154e409

View File

@ -964,13 +964,15 @@ fn main() { let foo_test = fo$0o(); }
);
// use literal `crate` in path
check(r#"
check(
r#"
pub struct X;
fn foo() -> crate::X { X }
fn main() { f$0oo(); }
"#, expect![[r#"
"#,
expect![[r#"
*foo*
```rust
@ -980,7 +982,8 @@ fn main() { f$0oo(); }
```rust
fn foo() -> crate::X
```
"#]]);
"#]],
);
}
#[test]