-
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
The compiler proposes to import non-existing trait #39978
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using
rustc 1.15.1 (021bd294c 2017-02-08)
, installed withrustup
on Arch LinuxHere is code:
When I try to compile this, I get
but when I uncomment first line, I get
The solution is to
use std::os::linux::fs::MetadataExt;
and then usest_mode()
instead ofmode()
but that's not good. Compiler must not give me bad advices.The text was updated successfully, but these errors were encountered: