Skip to content

Commit d0cf283

Browse files
committed
Add generated doctest
1 parent 5b9f8e7 commit d0cf283

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

crates/ide_assists/src/tests/generated.rs

+19
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,25 @@ impl Point {
367367
)
368368
}
369369

370+
#[test]
371+
fn doctest_destructure_tuple_binding() {
372+
check_doc_test(
373+
"destructure_tuple_binding",
374+
r#####"
375+
fn main() {
376+
let $0t = (1,2);
377+
let v = t.0;
378+
}
379+
"#####,
380+
r#####"
381+
fn main() {
382+
let ($0_0, _1) = (1,2);
383+
let v = _0;
384+
}
385+
"#####,
386+
)
387+
}
388+
370389
#[test]
371390
fn doctest_expand_glob_import() {
372391
check_doc_test(

0 commit comments

Comments
 (0)