This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
cf2dff2b1e
rust
/
tests
/
ui
/
issues
/
issue-10545.rs
10 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
Don't allow impls to force public types This code in resolve accidentally forced all types with an impl to become public. This fixes it by default inheriting the privacy of what was previously there and then becoming `true` if nothing else exits. Closes #10545
2013-12-17 01:32:37 -06:00
mod
a
{
struct
S
;
impl
S
{
}
}
Refactor definitions of ADTs in rustc::middle::def
2016-01-17 13:57:54 -06:00
fn
foo
(
_
:
a
::
S
)
{
//~ ERROR: struct `S` is private
Don't allow impls to force public types This code in resolve accidentally forced all types with an impl to become public. This fixes it by default inheriting the privacy of what was previously there and then becoming `true` if nothing else exits. Closes #10545
2013-12-17 01:32:37 -06:00
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink