add missing test

This commit is contained in:
Aleksey Kladov 2021-12-27 19:04:49 +03:00
parent 8794892432
commit 634c7682c9

View file

@ -792,6 +792,19 @@ fn replace_type() {
"struct Result<T, E> {} struct Option<T> {} fn f1() -> Option<Vec<Error>> {foo()}"
]],
);
assert_ssr_transform(
"dyn Trait<$a> ==>> DynTrait<$a>",
r#"
trait Trait<T> {}
struct DynTrait<T> {}
fn f1() -> dyn Trait<Vec<Error>> {foo()}
"#,
expect![[r#"
trait Trait<T> {}
struct DynTrait<T> {}
fn f1() -> DynTrait<Vec<Error>> {foo()}
"#]],
);
}
#[test]