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
struct A; trait As { fn banana(); } impl As for A { fn banana() { panic!("banana"); } } trait Bs<T: As> { fn do_it(&self) { T::banana() } } struct B; impl Bs<A> for B {} fn main() { Bs::do_it(&B) }
When compiled, the dead_code lint fires, claiming that A is not used.
A
This code, when run, panics with banana, thus proving that A is, in fact, used.
banana
Possibly similar to #32998.
The text was updated successfully, but these errors were encountered:
Duplicate of #19613?
Sorry, something went wrong.
Seems to be right. I’ll update the said issue. Thanks @apasel422!
No branches or pull requests
When compiled, the dead_code lint fires, claiming that
A
is not used.This code, when run, panics with
banana
, thus proving thatA
is, in fact, used.Possibly similar to #32998.
The text was updated successfully, but these errors were encountered: