mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Move pretty-printing test out of assist
This commit is contained in:
parent
5c47eb6bf8
commit
e14d9208f5
2 changed files with 19 additions and 41 deletions
|
@ -306,6 +306,25 @@ fn main() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn macro_expand_with_dyn_absolute_path() {
|
||||
check(
|
||||
r#"
|
||||
macro_rules! foo {
|
||||
() => {fn f<T>(_: &dyn ::std::marker::Copy) {}};
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let res = fo$0o!();
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
foo
|
||||
fn f<T>(_: &dyn ::std::marker::Copy){}
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn macro_expand_derive() {
|
||||
check(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue