Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/text-size/tests/constructors.rs')
-rw-r--r--lib/text-size/tests/constructors.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/text-size/tests/constructors.rs b/lib/text-size/tests/constructors.rs
index 829a28e477..9c9d0801ca 100644
--- a/lib/text-size/tests/constructors.rs
+++ b/lib/text-size/tests/constructors.rs
@@ -6,7 +6,7 @@ use {
#[derive(Copy, Clone)]
struct BadRope<'a>(&'a [&'a str]);
-impl TextLen for BadRope<'_> {
+impl BadRope<'_> {
fn text_len(self) -> TextSize {
self.0.iter().map(TextSize::of).sum()
}
@@ -29,6 +29,7 @@ fn main() {
&String::new().into_boxed_str(),
&Arc::new(String::new()),
&Cow::Borrowed(""),
- BadRope(&[""]),
}
+
+ let _ = BadRope(&[""]).text_len();
}