aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists/src/tests
diff options
context:
space:
mode:
authorConrad Ludgate <[email protected]>2021-03-01 10:51:47 +0000
committerConrad Ludgate <[email protected]>2021-03-02 14:30:10 +0000
commit705712993ffe24898e3c1fe006e1108b7d02d6bc (patch)
treee3f40b0432e0dff4e1f53f37851c56ac9a94fc7e /crates/ide_assists/src/tests
parentf8152171bbe160c4273d692d42c06eb7c6d66e1a (diff)
feat: add type ascription assist
Diffstat (limited to 'crates/ide_assists/src/tests')
-rw-r--r--crates/ide_assists/src/tests/generated.rs19
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]
145fn doctest_add_type_ascription() {
146 check_doc_test(
147 "add_type_ascription",
148 r#####"
149fn make<T>() -> T { todo!() }
150fn main() {
151 let x = make$0();
152}
153"#####,
154 r#####"
155fn make<T>() -> T { todo!() }
156fn main() {
157 let x: ${0:_} = make();
158}
159"#####,
160 )
161}
162
163#[test]
145fn doctest_apply_demorgan() { 164fn doctest_apply_demorgan() {
146 check_doc_test( 165 check_doc_test(
147 "apply_demorgan", 166 "apply_demorgan",