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

Use the return value of a function to infer a type for the "ret" statement #170

Closed
pcwalton opened this issue Oct 12, 2010 · 1 comment
Closed
Labels
A-type-system Area: Type system

Comments

@pcwalton
Copy link
Contributor

Currently, statements like "ret none;" don't work because the typechecker isn't smart enough to infer the type parameter from the explicit function signature.

@graydon
Copy link
Contributor

graydon commented Jan 27, 2011

WONTFIX (not required for bootstrapping, should work in rustc already; reopen if not)

oli-obk added a commit to oli-obk/rust that referenced this issue Jul 19, 2017
update for upstream changes with ty::ParamEnv
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
unix: Add sendfile to platforms that support it
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
antoyo added a commit to antoyo/rust that referenced this issue Jun 7, 2022
Use the provided pointee type in `<Builder as BuilderMethods>::load`
celinval added a commit to celinval/rust-dev that referenced this issue Nov 20, 2024
Use default target folder instead of using a temporary folder.
Users are still able to customize the folder using Kani argument.

Avoid needless updates when Kani dependencies are
already up-to-date.

Fixes rust-lang#170
celinval added a commit to celinval/rust-dev that referenced this issue Nov 22, 2024
Use default target folder instead of using a temporary folder. Users are
still able to customize the folder using Kani argument.

Avoid needless updates when Kani dependencies are
already up-to-date.

Fixes rust-lang#170
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants