Don't treat associated types specially in def_privacy

Improve trait privacy error message
This commit is contained in:
Jeffrey Seyfried 2016-02-26 20:31:00 +00:00
parent 32f251cc1c
commit d908ff1759
2 changed files with 7 additions and 13 deletions

View file

@ -20,7 +20,7 @@ struct S;
impl m::Pub for S {}
fn g<T: m::Pub>(arg: T) {
arg.f(); //~ ERROR: source trait is private
arg.f(); //~ ERROR: source trait `m::Priv` is private
}
fn main() {