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
I believe this compiles but shouldn't:
struct MyStruct<T> { x: T, } type OtherStruct = MyStruct<bool>; let s = OtherStruct { x: 1, };
Nominating for 1.0, P-backcompat-lang.
The text was updated successfully, but these errors were encountered:
Even this compiles while it shouldn't:
struct MyStruct<T> { x: T, } let s = MyStruct::<bool> { x: 1, };
Sorry, something went wrong.
librustc: Check structure constructors against their types.
edeb717
This breaks code like: struct Point<T> { x: T, y: T, } let pt = Point::<bool> { x: 1, y: 2, }; Change this code to not contain a type error. For example: let pt = Point::<int> { x: 1, y: 2, }; Closes rust-lang#9620. Closes rust-lang#15875. [breaking-change]
103d888
Auto merge of rust-lang#15875 - Young-Flash:fix_grammar, r=Veykril
a473303
fix `PathSegment` grammar close rust-lang/rust-analyzer#15778
Successfully merging a pull request may close this issue.
I believe this compiles but shouldn't:
Nominating for 1.0, P-backcompat-lang.
The text was updated successfully, but these errors were encountered: