This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
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-16 23:32:37 -08:00
mod
a
{
struct
S
;
impl
S
{
}
}
Refactor definitions of ADTs in rustc::middle::def
2016-01-17 22:57:54 +03: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-16 23:32:37 -08:00
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink