diff --git a/src/protocol/tests/parser_inference.rs b/src/protocol/tests/parser_inference.rs index ddf5a72cbd78ddad2518dc74ec651f4d17349f3a..7158a305e382d1e0bf266849422f1ffbd621f67f 100644 --- a/src/protocol/tests/parser_inference.rs +++ b/src/protocol/tests/parser_inference.rs @@ -388,8 +388,8 @@ fn test_failed_polymorph_inference() { " ).error(|e| { e .assert_num(2) - .assert_any_msg_has("type 'Uninteresting'") - .assert_any_msg_has("type 'Uninteresting'"); + .assert_msg_has(0, "type 'Uninteresting'") + .assert_msg_has(1, "type 'Uninteresting'"); }); Tester::new_single_source_expect_err( @@ -405,7 +405,7 @@ fn test_failed_polymorph_inference() { ).error(|e| { e .assert_num(3) .assert_ctx_has(0, "holder.a") - .assert_occurs_at(0, ".") + .assert_occurs_at(0, "holder.a") .assert_msg_has(0, "Conflicting type for polymorphic variable 'Shazam'") .assert_msg_has(1, "inferred it to 's8'") .assert_msg_has(2, "inferred it to 's32'");