We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4829f59 commit 0eca3efCopy full SHA for 0eca3ef
crates/hir-ty/src/tests/coercion.rs
@@ -536,17 +536,15 @@ fn test() {
536
537
#[test]
538
fn coerce_unsize_generic() {
539
- check(
+ check_no_mismatches(
540
r#"
541
//- minicore: coerce_unsized
542
struct Foo<T> { t: T };
543
struct Bar<T>(Foo<T>);
544
545
fn test() {
546
let _: &Foo<[usize]> = &Foo { t: [1, 2, 3] };
547
- //^^^^^^^^^^^^^^^^^^^^^ expected &Foo<[usize]>, got &Foo<[i32; 3]>
548
let _: &Bar<[usize]> = &Bar(Foo { t: [1, 2, 3] });
549
- //^^^^^^^^^^^^^^^^^^^^^^^^^^ expected &Bar<[usize]>, got &Bar<[i32; 3]>
550
}
551
"#,
552
);
0 commit comments