refactor "unnecessary else" diagnostic test

This commit is contained in:
davidsemakula 2024-02-19 14:43:43 +03:00
parent ff70310086
commit 7dfeb2cdcc

View File

@ -491,13 +491,12 @@ fn test2() {
} }
"#, "#,
); );
check_diagnostics_with_disabled( check_diagnostics(
r#" r#"
fn test3() { fn test3() -> u8 {
foo(if a { return 1 } else { 0 }) foo(if a { return 1 } else { 0 })
} }
"#, "#,
std::iter::once("E0308".to_owned()),
); );
} }
} }