Update auto generated tests

This commit is contained in:
unexge 2022-10-30 00:00:53 +01:00
parent 48efc9d303
commit f0a14346ee

View File

@ -407,6 +407,26 @@ fn main() {
)
}
#[test]
fn doctest_convert_match_to_let_else() {
check_doc_test(
"convert_match_to_let_else",
r#####"
fn foo(opt: Option<()>) {
let val = $0match opt {
Some(it) => it,
None => return,
};
}
"#####,
r#####"
fn foo(opt: Option<()>) {
let Some(val) = opt else { return };
}
"#####,
)
}
#[test]
fn doctest_convert_named_struct_to_tuple_struct() {
check_doc_test(