Fix compile-fail test for ExactSizeIterator::is_empty
This commit is contained in:
parent
208de46f8b
commit
f2e73d9d48
1 changed files with 4 additions and 3 deletions
|
@ -18,7 +18,8 @@ fn foo<F>(f: F) where F: FnMut(Foo) {}
|
|||
fn main() {
|
||||
foo(|s| s.is_empty());
|
||||
//~^ ERROR no method named `is_empty` found
|
||||
//~^^ HELP #1: `core::slice::SliceExt`
|
||||
//~^^^ HELP #2: `core::str::StrExt`
|
||||
//~^^^^ 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:
|
||||
//~^^ HELP #1: `std::iter::ExactSizeIterator`
|
||||
//~^^^ HELP #2: `core::slice::SliceExt`
|
||||
//~^^^^ HELP #3: `core::str::StrExt`
|
||||
//~^^^^^ 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:
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue