From 1cff4c250d9d7acfe95102a96070724d01b88757 Mon Sep 17 00:00:00 2001 From: FullyNonlinear Date: Mon, 1 Jul 2024 23:08:36 +0800 Subject: [PATCH] Pass test specific error message to must_have --- src/test/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/mod.rs b/src/test/mod.rs index 9fc7bd87..8e6c1158 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -146,7 +146,7 @@ fn trait_items_with_duplicate_fn_names() { } ] - [ /* TODO */ ] + ["the function name `a` is defined multiple times",] expect_test::expect![[r#" check_trait(A) @@ -169,7 +169,7 @@ fn trait_items_with_duplicate_associated_type_names() { } ] - [ /* TODO */ ] + ["the associated type name `Assoc` is defined multiple times",] expect_test::expect![[r#" check_trait(A)