]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/method-suggestion-no-duplication.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / method-suggestion-no-duplication.stderr
CommitLineData
dfeec247 1error[E0599]: no method named `is_empty` found for struct `Foo` in the current scope
48663c56 2 --> $DIR/method-suggestion-no-duplication.rs:7:15
7cac9316 3 |
0531ce1d 4LL | struct Foo;
ff7c6d11
XL
5 | ----------- method `is_empty` not found for this
6...
0531ce1d 7LL | foo(|s| s.is_empty());
e1599b0c 8 | ^^^^^^^^ method not found in `Foo`
7cac9316
XL
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`.