Skip to content

Commit 1cff4c2

Browse files
Pass test specific error message to must_have
1 parent 5d3dbb5 commit 1cff4c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn trait_items_with_duplicate_fn_names() {
146146
}
147147
]
148148

149-
[ /* TODO */ ]
149+
["the function name `a` is defined multiple times",]
150150

151151
expect_test::expect![[r#"
152152
check_trait(A)
@@ -169,7 +169,7 @@ fn trait_items_with_duplicate_associated_type_names() {
169169
}
170170
]
171171

172-
[ /* TODO */ ]
172+
["the associated type name `Assoc` is defined multiple times",]
173173

174174
expect_test::expect![[r#"
175175
check_trait(A)

0 commit comments

Comments
 (0)