Nonsensical prints to be removed.
This commit is contained in:
@@ -1970,12 +1970,14 @@ fn forbid_expect_into_nested_opaque_in_record_without_typecasting() {
|
||||
|
||||
type Foo { foo: Thing }
|
||||
|
||||
fn bar(thing: Foo) {
|
||||
expect Foo { foo: Thing { inner } } : Foo = thing
|
||||
fn bar(f: Foo) {
|
||||
expect Foo { foo: Thing { inner } } : Foo = f
|
||||
Void
|
||||
}
|
||||
"#;
|
||||
|
||||
panic!("");
|
||||
|
||||
assert!(matches!(
|
||||
check(parse(source_code)),
|
||||
Err((_, Error::ExpectOnOpaqueType { .. }))
|
||||
|
||||
Reference in New Issue
Block a user