]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/method-suggestion-no-duplication.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / impl-trait / method-suggestion-no-duplication.stderr
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    |
4 19 |     foo(|s| s.is_empty());
5    |               ^^^^^^^^
6    |
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`
12
13 error: aborting due to previous error
14