-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Create bogus-error-#39161.rs #71333
Create bogus-error-#39161.rs #71333
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I think this test would be better:
pub struct X {
pub a: i32,
pub b: i32,
}
fn main() {
const DX: X = X { a: 0, b: 0 };
const _X1: X = X { a: 1, ..DX };
let _x2 = X { a: 1, b: 2, ..DX };
const _X3: X = X { a: 1, b: 2, ..DX };
}
This doesn't need allow attribute and emit warnings.
@@ -0,0 +1,10 @@ | |||
// run-pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be // check-pass
?
Also, could you place this test in |
@YesSeri this is a triage bump. |
I'm going to go ahead and close this PR, as it's over 3 months old. @YesSeri please feel free to re-open if you get a chance to address @JohnTitor's feedback. ❤️ |
…ohnTitor Add regression test for issue rust-lang#39161 Closes rust-lang#39161 Based on feedback from `@JohnTitor` in rust-lang#71333 r? `@JohnTitor`
…ohnTitor Add regression test for issue rust-lang#39161 Closes rust-lang#39161 Based on feedback from ``@JohnTitor`` in rust-lang#71333 r? ``@JohnTitor``
closes #39161
It is still working.