]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/method-suggestion-no-duplication.stderr
New upstream version 1.27.1+dfsg1
[rustc.git] / src / test / ui / impl-trait / method-suggestion-no-duplication.stderr
CommitLineData
7cac9316
XL
1error[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 4LL | struct Foo;
ff7c6d11
XL
5 | ----------- method `is_empty` not found for this
6...
0531ce1d 7LL | 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 14error: aborting due to previous error
7cac9316 15
0531ce1d 16For more information about this error, try `rustc --explain E0599`.