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.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ide-assists/src/tests/generated.rs b/crates/ide-assists/src/tests/generated.rs
index 74ae126ada..91c1a3e1bd 100644
--- a/crates/ide-assists/src/tests/generated.rs
+++ b/crates/ide-assists/src/tests/generated.rs
@@ -1196,6 +1196,23 @@ fn main() {
}
#[test]
+fn doctest_flip_or_pattern() {
+ check_doc_test(
+ "flip_or_pattern",
+ r#####"
+fn foo() {
+ let (a |$0 b) = 1;
+}
+"#####,
+ r#####"
+fn foo() {
+ let (b | a) = 1;
+}
+"#####,
+ )
+}
+
+#[test]
fn doctest_flip_trait_bound() {
check_doc_test(
"flip_trait_bound",