]>
Commit | Line | Data |
---|---|---|
7cac9316 XL |
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 | |
3 | | | |
0531ce1d | 4 | LL | struct Foo; |
ff7c6d11 XL |
5 | | ----------- method `is_empty` not found for this |
6 | ... | |
0531ce1d | 7 | LL | foo(|s| s.is_empty()); |
7cac9316 XL |
8 | | ^^^^^^^^ |
9 | | | |
10 | = help: items from traits can only be used if the trait is implemented and in scope | |
83c7162d | 11 | = note: the following trait defines an item `is_empty`, perhaps you need to implement it: |
7cac9316 | 12 | candidate #1: `std::iter::ExactSizeIterator` |
7cac9316 | 13 | |
041b39d2 | 14 | error: aborting due to previous error |
7cac9316 | 15 | |
0531ce1d | 16 | For more information about this error, try `rustc --explain E0599`. |