-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Apply coercion rules on return expressions #12755
Comments
At present you need to write:
Note that I returned |
Nominated. Adding to meeting agenda as this would be a user-visible change, though I don't expect controversy. |
To be clear: my suggestion is 1.0 but not backwards compat (I think this change would make the language strictly more accepting) |
cc @flaper87 |
Assigning P-high (but not 1.0; it won't kill us if we don't have it). |
Fixing this as part of the DST work |
This has landed now |
fix: Set server binary version when distributing
…et,GuillaumeGomez Allow more attributes in `clippy::useless_attribute` Fixes rust-lang#12753 Fixes rust-lang#4467 Fixes rust-lang#11595 Fixes rust-lang#10878 changelog: [`useless_attribute`]: Attributes allowed on `use` items now include `ambiguous_glob_exports`, `hidden_glob_reexports`, `dead_code`, `unused_braces`, and `clippy::disallowed_types`.
Asked on reddit
I have a program where I want to select from two fields (int in this example, io::Writer in practice). It is not possible to return a in a way the program compiles.
Reborrowing was suggested (
&mut *self.a
) but you can't do that withio::Writer
references.The text was updated successfully, but these errors were encountered: