about summary refs log tree commit diff
path: root/tests/ui/suggestions/double-reference-ty-in-self-ty.stderr
blob: a718234241093e4e2f6379fff97bce8d2c2463f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0599]: no method named `len` found for struct `A` in the current scope
  --> $DIR/double-reference-ty-in-self-ty.rs:10:7
   |
LL | struct A;
   | -------- method `len` not found for this struct
...
LL |     fn len(self: &&A) {}
   |        --- the method is available for `&A` here
...
LL |     A.len();
   |       ^^^ method not found in `A`
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following trait defines an item `len`, perhaps you need to implement it:
           candidate #1: `ExactSizeIterator`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0599`.