We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a8e80 commit 59738d5Copy full SHA for 59738d5
crates/ide-assists/src/tests/generated.rs
@@ -280,6 +280,34 @@ fn some_function(x: i32) {
280
)
281
}
282
283
+#[test]
284
+fn doctest_bool_to_enum() {
285
+ check_doc_test(
286
+ "bool_to_enum",
287
+ r#####"
288
+fn main() {
289
+ let $0bool = true;
290
+
291
+ if bool {
292
+ println!("foo");
293
+ }
294
+}
295
+"#####,
296
297
298
+ #[derive(PartialEq, Eq)]
299
+ enum Bool { True, False }
300
301
+ let bool = Bool::True;
302
303
+ if bool == Bool::True {
304
305
306
307
308
+ )
309
310
311
#[test]
312
fn doctest_change_visibility() {
313
check_doc_test(
0 commit comments