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
priv fn in an impl does not create a private method. The following code compiles and runs without error, even though shl_unit() is marked priv: https://github.com/mozilla/rust/blob/e447521c1ca2dbead5b485ddc43060b282840817/src/libstd/bigint.rs#L452
priv fn
impl
shl_unit()
priv
extern mod std; fn main() { std::bigint::BigUint::from_uint(2).shl_unit(3); }
This issue might be related to issue #3452.
The text was updated successfully, but these errors were encountered:
Bumping to 0.7
Sorry, something went wrong.
@pcwalton fixed this
foo.rs:3:4: 3:51 error: method `shl_unit` is private foo.rs:3 std::bigint::BigUint::from_uint(2).shl_unit(3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error
No branches or pull requests
priv fn
in animpl
does not create a private method. The following code compiles and runs without error, even thoughshl_unit()
is markedpriv
: https://github.com/mozilla/rust/blob/e447521c1ca2dbead5b485ddc43060b282840817/src/libstd/bigint.rs#L452This issue might be related to issue #3452.
The text was updated successfully, but these errors were encountered: