1 error[E0599]: no method named `is_empty` found for type `Foo` in the current scope
2 --> $DIR/method-suggestion-no-duplication.rs:19:15
4 19 | foo(|s| s.is_empty());
7 = help: items from traits can only be used if the trait is implemented and in scope
8 = note: the following traits define an item `is_empty`, perhaps you need to implement one of them:
9 candidate #1: `std::iter::ExactSizeIterator`
10 candidate #2: `core::slice::SliceExt`
11 candidate #3: `core::str::StrExt`
13 error: aborting due to previous error