Skip to content

Commit 0eca3ef

Browse files
committed
Fix coerce_unsize_generic test
1 parent 4829f59 commit 0eca3ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/hir-ty/src/tests/coercion.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -536,17 +536,15 @@ fn test() {
536536

537537
#[test]
538538
fn coerce_unsize_generic() {
539-
check(
539+
check_no_mismatches(
540540
r#"
541541
//- minicore: coerce_unsized
542542
struct Foo<T> { t: T };
543543
struct Bar<T>(Foo<T>);
544544
545545
fn test() {
546546
let _: &Foo<[usize]> = &Foo { t: [1, 2, 3] };
547-
//^^^^^^^^^^^^^^^^^^^^^ expected &Foo<[usize]>, got &Foo<[i32; 3]>
548547
let _: &Bar<[usize]> = &Bar(Foo { t: [1, 2, 3] });
549-
//^^^^^^^^^^^^^^^^^^^^^^^^^^ expected &Bar<[usize]>, got &Bar<[i32; 3]>
550548
}
551549
"#,
552550
);

0 commit comments

Comments
 (0)