Skip to content

Commit f2e73d9

Browse files
committed
Fix compile-fail test for ExactSizeIterator::is_empty
1 parent 208de46 commit f2e73d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/compile-fail/method-suggestion-no-duplication.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ fn foo<F>(f: F) where F: FnMut(Foo) {}
1818
fn main() {
1919
foo(|s| s.is_empty());
2020
//~^ ERROR no method named `is_empty` found
21-
//~^^ HELP #1: `core::slice::SliceExt`
22-
//~^^^ HELP #2: `core::str::StrExt`
23-
//~^^^^ HELP items from traits can only be used if the trait is implemented and in scope; the following traits define an item `is_empty`, perhaps you need to implement one of them:
21+
//~^^ HELP #1: `std::iter::ExactSizeIterator`
22+
//~^^^ HELP #2: `core::slice::SliceExt`
23+
//~^^^^ HELP #3: `core::str::StrExt`
24+
//~^^^^^ HELP items from traits can only be used if the trait is implemented and in scope; the following traits define an item `is_empty`, perhaps you need to implement one of them:
2425
}

0 commit comments

Comments
 (0)