Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/tests/generated.rs')
| -rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 43d30e84b3..e30f98bcd1 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs @@ -1877,6 +1877,25 @@ fn handle() { } #[test] +fn doctest_replace_turbofish_with_explicit_type() { + check_doc_test( + "replace_turbofish_with_explicit_type", + r#####" +fn make<T>() -> T { ) } +fn main() { + let a = make$0::<i32>(); +} +"#####, + r#####" +fn make<T>() -> T { ) } +fn main() { + let a: i32 = make(); +} +"#####, + ) +} + +#[test] fn doctest_sort_items() { check_doc_test( "sort_items", |