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:
}