]> git.lizzy.rs Git - rust.git/commit
Fix another false positive in lifetime elision lint
authorFlorian Hartwig <florian.j.hartwig@gmail.com>
Sun, 17 Jan 2016 16:53:41 +0000 (17:53 +0100)
committerFlorian Hartwig <florian.j.hartwig@gmail.com>
Sun, 17 Jan 2016 16:53:41 +0000 (17:53 +0100)
commit7e85db645e35061d11897c049715c845fb4cf073
treed9f47c0da0e7101abcc0f6bafdf404c336324181
parent840d87022e33ddd0a3e6ac40b26a4a4fc4fcb32c
Fix another false positive in lifetime elision lint

The false positive occurred when we have an anonymous input lifetime and a
named output lifetime. This is not elidable, because if we elided the output
lifetime, it would be inferred to be the same as the input.
src/lifetimes.rs
tests/compile-fail/lifetimes.rs