Skip to content

Never Type #367

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

Open
philberty opened this issue Apr 12, 2021 · 1 comment
Open

Never Type #367

philberty opened this issue Apr 12, 2021 · 1 comment
Assignees

Comments

@philberty
Copy link
Member

philberty commented Apr 12, 2021

https://doc.rust-lang.org/reference/types/never.html

fn main() {
    let a = return;
    let b = a + 1;
    a = 123;
}

This has interesting implications for the type resolution and eager substitution of inference variables.

See #364 for more context.

@philberty
Copy link
Member Author

This depends on #434

@philberty philberty mentioned this issue Jun 11, 2021
8 tasks
@philberty philberty self-assigned this Oct 27, 2021
@philberty philberty modified the milestones: Control Flow 2 - Pattern Matching, Unstable bucket Nov 3, 2021
@philberty philberty removed their assignment Feb 7, 2022
@philberty philberty removed this from the Unstable bucket milestone Oct 7, 2022
@philberty philberty self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant