diff options
author | Conrad Ludgate <[email protected]> | 2021-03-01 10:51:47 +0000 |
---|---|---|
committer | Conrad Ludgate <[email protected]> | 2021-03-02 14:30:10 +0000 |
commit | 705712993ffe24898e3c1fe006e1108b7d02d6bc (patch) | |
tree | e3f40b0432e0dff4e1f53f37851c56ac9a94fc7e /crates/ide_assists/src/tests | |
parent | f8152171bbe160c4273d692d42c06eb7c6d66e1a (diff) |
feat: add type ascription assist
Diffstat (limited to 'crates/ide_assists/src/tests')
-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 4f007aa48..439ee8b22 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs | |||
@@ -142,6 +142,25 @@ fn main() { | |||
142 | } | 142 | } |
143 | 143 | ||
144 | #[test] | 144 | #[test] |
145 | fn doctest_add_type_ascription() { | ||
146 | check_doc_test( | ||
147 | "add_type_ascription", | ||
148 | r#####" | ||
149 | fn make<T>() -> T { todo!() } | ||
150 | fn main() { | ||
151 | let x = make$0(); | ||
152 | } | ||
153 | "#####, | ||
154 | r#####" | ||
155 | fn make<T>() -> T { todo!() } | ||
156 | fn main() { | ||
157 | let x: ${0:_} = make(); | ||
158 | } | ||
159 | "#####, | ||
160 | ) | ||
161 | } | ||
162 | |||
163 | #[test] | ||
145 | fn doctest_apply_demorgan() { | 164 | fn doctest_apply_demorgan() { |
146 | check_doc_test( | 165 | check_doc_test( |
147 | "apply_demorgan", | 166 | "apply_demorgan", |