privacy: Fix regression in impl reachability

This commit is contained in:
Vadim Petrochenkov 2019-01-04 21:30:54 +03:00
parent 68fe5182c9
commit 67713f5b7f
3 changed files with 30 additions and 3 deletions

View file

@ -0,0 +1,9 @@
mod inner {
pub struct PubUnnameable;
}
pub struct Pub<T>(T);
impl Pub<inner::PubUnnameable> {
pub fn pub_method() {}
}

View file

@ -0,0 +1,8 @@
// compile-pass
// aux-build:issue-57264.rs
extern crate issue_57264;
fn main() {
issue_57264::Pub::pub_method();
}