about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-02-14 13:35:43 +0100
committerLukas Wirth <lukastw97@gmail.com>2024-02-14 13:50:44 +0100
commit0eca3ef93eacd34e47d2893a3777e1d55593823c (patch)
tree5fb413a4afe3688e35389ef5a16cbc5a5bbfba48
parent4829f591fbf6ce7e91394775c8be10cdf9291d1b (diff)
downloadrust-0eca3ef93eacd34e47d2893a3777e1d55593823c.tar.gz
rust-0eca3ef93eacd34e47d2893a3777e1d55593823c.zip
Fix coerce_unsize_generic test
-rw-r--r--crates/hir-ty/src/tests/coercion.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/hir-ty/src/tests/coercion.rs b/crates/hir-ty/src/tests/coercion.rs
index d56b15b9b74..bfb8df61a33 100644
--- a/crates/hir-ty/src/tests/coercion.rs
+++ b/crates/hir-ty/src/tests/coercion.rs
@@ -536,7 +536,7 @@ fn test() {
 
 #[test]
 fn coerce_unsize_generic() {
-    check(
+    check_no_mismatches(
         r#"
 //- minicore: coerce_unsized
 struct Foo<T> { t: T };
@@ -544,9 +544,7 @@ struct Bar<T>(Foo<T>);
 
 fn test() {
     let _: &Foo<[usize]> = &Foo { t: [1, 2, 3] };
-                         //^^^^^^^^^^^^^^^^^^^^^ expected &Foo<[usize]>, got &Foo<[i32; 3]>
     let _: &Bar<[usize]> = &Bar(Foo { t: [1, 2, 3] });
-                         //^^^^^^^^^^^^^^^^^^^^^^^^^^ expected &Bar<[usize]>, got &Bar<[i32; 3]>
 }
 "#,
     );