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

Add test for #8860 #12257

Closed
wants to merge 1 commit into from
Closed

Add test for #8860 #12257

wants to merge 1 commit into from

Conversation

edwardw
Copy link
Contributor

@edwardw edwardw commented Feb 14, 2014

Closes #8860.


fn main() {
let s = S;
f(s);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you assert that DROP is 1 after this statement?

@edwardw
Copy link
Contributor Author

edwardw commented Feb 14, 2014

Added two separate static mut counters.

@edwardw edwardw deleted the issue-8860 branch February 26, 2014 12:56
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 26, 2024
Don't lint `incompatible_msrv` in test code

fixes rust-lang#12257

changelog: `incompatible_msrv`: Don't lint in test code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ref in function parameter patterns
2 participants