mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
add missing test
This commit is contained in:
parent
8794892432
commit
634c7682c9
1 changed files with 13 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue