Move pretty-printing test out of assist

This commit is contained in:
Laurențiu Nicola 2022-01-06 16:38:25 +02:00
parent 5c47eb6bf8
commit e14d9208f5
2 changed files with 19 additions and 41 deletions

View file

@ -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(