Update E0446 label with improved wording
This commit is contained in:
parent
2fa91b23c5
commit
c0f29fdd58
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ mod Foo {
|
|||
struct Bar(u32);
|
||||
|
||||
pub fn bar() -> Bar { //~ ERROR E0446
|
||||
//~| NOTE private type can't be public
|
||||
//~| NOTE can't leak private type
|
||||
Bar(0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue