We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as shown by https://github.com/mozilla/rust/pull/5670/files
I was already using 'self in the return values for find and find_mut in the Map trait.
'self
find
find_mut
Map
I'm not entirely sure this is a bug.... but it's an inconsistency.
The text was updated successfully, but these errors were encountered:
It's a bug, if a minor one. cc #4846
Sorry, something went wrong.
This testcase:
fn main() { } struct Foo { x: int } impl Foo { fn bleh(&self) -> &'self int { return &self.x } }
Now produces the error:
t.rs:4:29: 4:32 error: Illegal lifetime 'self: the `self` lifetime must be declared t.rs:4 fn bleh(&self) -> &'self int { ^~~
And the error goes away if I change the impl to:
impl
impl<'self> Foo { fn bleh(&'self self) -> &'self int { return &self.x } }
So I'm going to say this is closed. Reopen if I misunderstood.
Auto merge of rust-lang#5671 - ebroto:changelog_144_145, r=flip1995
6fc9939
Update changelog for stable:1.44 beta:1.45 [Rendered](https://github.com/ebroto/rust-clippy/blob/changelog_144_145/CHANGELOG.md) changelog: none
nikomatsakis
No branches or pull requests
as shown by https://github.com/mozilla/rust/pull/5670/files
I was already using
'self
in the return values forfind
andfind_mut
in theMap
trait.I'm not entirely sure this is a bug.... but it's an inconsistency.
The text was updated successfully, but these errors were encountered: