about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-29 16:53:31 -0400
committerGitHub <noreply@github.com>2017-03-29 16:53:31 -0400
commit7f1083e741de0b210bb3eda4f17cffb0b470c3d2 (patch)
tree00a092e4c808b06285033a2c8b7f723d0dce1016 /src/test/run-pass/thinlto
parentea9c8b992c2155f3cb2e19dc0e7f65ce16158889 (diff)
parent872d3bc0d713a85f2050f99d0cf33dd060318411 (diff)
downloadrust-7f1083e741de0b210bb3eda4f17cffb0b470c3d2.tar.gz
rust-7f1083e741de0b210bb3eda4f17cffb0b470c3d2.zip
Rollup merge of #40816 - estebank:issue-38321, r=nikomatsakis
Clarify suggetion for field used as method

Instead of

```rust
error: no method named `src_addr` found for type `&wire::ipv4::Repr` in the current scope
   --> src/wire/ipv4.rs:409:34
    |
409 |         packet.set_src_addr(self.src_addr());
    |                                  ^^^^^^^^
    |
note: did you mean to write `self.src_addr`?
   --> src/wire/ipv4.rs:409:34
    |
409 |         packet.set_src_addr(self.src_addr());
    |                                  ^^^^^^^^
```

present

```rust
error: no method named `src_addr` found for type `&wire::ipv4::Repr` in the current scope
   --> src/wire/ipv4.rs:409:34
    |
409 |         packet.set_src_addr(self.src_addr());
    |                                  ^^^^^^^^ field, not a method
    |
    = help: did you mean to write `self.src_addr` instead of `self.src_addr(...)`?
```

Fix #38321.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions