Skip to content
New issue

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

Deriving fails with 'self lifetimes #6149

Closed
huonw opened this issue May 1, 2013 · 0 comments
Closed

Deriving fails with 'self lifetimes #6149

huonw opened this issue May 1, 2013 · 0 comments

Comments

@huonw
Copy link
Member

huonw commented May 1, 2013

#[deriving(Eq)]
struct A<'self> {
    a: &'self int
}

fn main() {}
deriving-lifetime.rs:2:11: 2:14 error: Illegal anonymous lifetime: anonymous lifetimes are not permitted here
deriving-lifetime.rs:2 #[deriving(Eq)]
                                  ^~~
deriving-lifetime.rs:2:11: 2:14 error: mismatched types: expected `&int` but found `&&int` (expected int but found &-ptr)
deriving-lifetime.rs:2 #[deriving(Eq)]
                                  ^~~
deriving-lifetime.rs:2:11: 2:14 error: mismatched types: expected `&int` but found `&&int` (expected int but found &-ptr)
deriving-lifetime.rs:2 #[deriving(Eq)]
                                  ^~~
error: aborting due to 3 previous errors

(I'm almost certain is a problem in the work I started in #5640 (although it's also present in the IterBytes and Encodable deriving code), since there are no lifetime considerations in any of that code at all; I'm currently working on finishing that work which will fix this.)

@bors bors closed this as completed in 8f94ac6 May 11, 2013
bors added a commit to rust-lang-ci/rust that referenced this issue Oct 24, 2020
Remove deprecated set-env from GHA

This updates all of our action dependencies and removes every usage of `set-env`. `set-env` and `add-path` has been deprecated: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant