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
For example.this does not compile:
// bar.rs #[cfg_attr(foo, derive(Clone))] struct A(u32); // foo.rs include!("bar.rs"); fn main() { A(1).clone(); }
Compiled with rustc --cfg foo foo.rs this will fail with A not implementing Clone.
rustc --cfg foo foo.rs
A
Clone
The text was updated successfully, but these errors were encountered:
dupe #22250?
Sorry, something went wrong.
Probably, yeah.
No branches or pull requests
For example.this does not compile:
Compiled with
rustc --cfg foo foo.rs
this will fail withA
not implementingClone
.The text was updated successfully, but these errors were encountered: