fix: contains_opaque was never intended to be used for type equality

This commit is contained in:
rvcas
2024-03-21 11:30:01 -04:00
committed by Lucas
parent 5cec2544b3
commit c20ff6b160
3 changed files with 3 additions and 12 deletions

View File

@@ -1976,12 +1976,7 @@ fn forbid_expect_into_nested_opaque_in_record_without_typecasting() {
}
"#;
panic!("");
assert!(matches!(
check(parse(source_code)),
Err((_, Error::ExpectOnOpaqueType { .. }))
))
assert!(check(parse(source_code)).is_ok())
}
#[test]