diff options
Diffstat (limited to 'crates/ra_assists/src/doc_tests/generated.rs')
-rw-r--r-- | crates/ra_assists/src/doc_tests/generated.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 1bee76f59..176761efb 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs | |||
@@ -157,6 +157,28 @@ fn process(map: HashMap<String, String>) {} | |||
157 | } | 157 | } |
158 | 158 | ||
159 | #[test] | 159 | #[test] |
160 | fn doctest_add_new() { | ||
161 | check( | ||
162 | "add_new", | ||
163 | r#####" | ||
164 | struct Ctx<T: Clone> { | ||
165 | data: T,<|> | ||
166 | } | ||
167 | "#####, | ||
168 | r#####" | ||
169 | struct Ctx<T: Clone> { | ||
170 | data: T, | ||
171 | } | ||
172 | |||
173 | impl<T: Clone> Ctx<T> { | ||
174 | fn new(data: T) -> Self { Self { data } } | ||
175 | } | ||
176 | |||
177 | "#####, | ||
178 | ) | ||
179 | } | ||
180 | |||
181 | #[test] | ||
160 | fn doctest_apply_demorgan() { | 182 | fn doctest_apply_demorgan() { |
161 | check( | 183 | check( |
162 | "apply_demorgan", | 184 | "apply_demorgan", |