@@ -1055,6 +1055,7 @@ pub trait AssertHasLength<E> {
10551055 /// assert_that!(&some_map).has_length_less_than(5);
10561056 /// # }
10571057 /// ```
1058+ #[ track_caller]
10581059 fn has_length_less_than ( self , expected_length : E ) -> Self ;
10591060
10601061 /// Verifies that the subject has a length that is greater than the expected
@@ -1103,6 +1104,7 @@ pub trait AssertHasLength<E> {
11031104 /// assert_that!(&some_map).has_length_greater_than(3);
11041105 /// # }
11051106 /// ```
1107+ #[ track_caller]
11061108 fn has_length_greater_than ( self , expected_length : E ) -> Self ;
11071109
11081110 /// Verifies that the subject has a length that is at most the expected
@@ -1154,6 +1156,7 @@ pub trait AssertHasLength<E> {
11541156 /// assert_that!(&some_map).has_at_most_length(4);
11551157 /// # }
11561158 /// ```
1159+ #[ track_caller]
11571160 fn has_at_most_length ( self , expected_length : E ) -> Self ;
11581161
11591162 /// Verifies that the subject has a length that is at least the expected
@@ -1205,6 +1208,7 @@ pub trait AssertHasLength<E> {
12051208 /// assert_that!(&some_map).has_at_least_length(4);
12061209 /// # }
12071210 /// ```
1211+ #[ track_caller]
12081212 fn has_at_least_length ( self , expected_length : E ) -> Self ;
12091213}
12101214
@@ -1511,6 +1515,7 @@ pub trait AssertResultValue<'a, T, E, R> {
15111515 /// let subject: Result<u64, String> = Err("te anim adipisici mollit".to_string());
15121516 /// assert_that!(subject).err().is_equal_to("te anim adipisici mollit");
15131517 /// ```
1518+ #[ track_caller]
15141519 fn err ( self ) -> Spec < ' a , E , R > ;
15151520}
15161521
0 commit comments