diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-29 21:58:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 21:58:14 +0200 |
| commit | 81207802a0d83a2d43cb57f3a67f1b948d3b108f (patch) | |
| tree | 87674bf6f87fe66cd0bff9499fe5e89fbe8ec63f /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 96dd4690c3aa70ec312448c3f2d50e6dc6fb87df (diff) | |
| parent | 1bd69702de07858ad9c7ae7ed89c3c99aea64550 (diff) | |
| download | rust-81207802a0d83a2d43cb57f3a67f1b948d3b108f.tar.gz rust-81207802a0d83a2d43cb57f3a67f1b948d3b108f.zip | |
Rollup merge of #67460 - estebank:named-lts, r=nikomatsakis
Tweak impl signature mismatch errors involving `RegionKind::ReVar` lifetimes
Fix #66406, fix #72106.
```
error: `impl` item signature doesn't match `trait` item signature
--> $DIR/trait-param-without-lifetime-constraint.rs:14:5
|
LL | fn get_relation(&self) -> To;
| ----------------------------- expected `fn(&Article) -> &ProofReader`
...
LL | fn get_relation(&self) -> &ProofReader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(&Article) -> &ProofReader`
|
= note: expected `fn(&Article) -> &ProofReader`
found `fn(&Article) -> &ProofReader`
help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
--> $DIR/trait-param-without-lifetime-constraint.rs:10:31
|
LL | fn get_relation(&self) -> To;
| ^^ consider borrowing this type parameter in the trait
```
r? @nikomatsakis
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
