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
The following compiles fine (the Some::<u8> line does not, however).
Some::<u8>
fn main() { match Some("foo") { None::<int> => {} // Some::<u8>(_) => {} Some(_) => {} } }
(Nominated for backcompat-lang :( since changing this can cause programs to break.)
The text was updated successfully, but these errors were encountered:
auto merge of #16454 : pcwalton/rust/types-in-path-patterns, r=brson
4bb4a43
patterns. This breaks code like: fn main() { match Some("foo") { None::<int> => {} Some(_) => {} } } Change this code to not contain a type error. For example: fn main() { match Some("foo") { None::<&str> => {} Some(_) => {} } } Closes #16353. [breaking-change] r? @huonw
857ba98
Successfully merging a pull request may close this issue.
The following compiles fine (the
Some::<u8>
line does not, however).(Nominated for backcompat-lang :( since changing this can cause programs to break.)
The text was updated successfully, but these errors were encountered: