mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
cargo fmt
This commit is contained in:
parent
82ae228d98
commit
6d2154e409
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user