Don't treat associated types specially in def_privacy
Improve trait privacy error message
This commit is contained in:
parent
32f251cc1c
commit
d908ff1759
2 changed files with 7 additions and 13 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue