blob: e8c6039cdc84b46a175ed7c535fb4769c45ff26e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0446]: private type alias `Foo` in public interface
--> $DIR/privacy.rs:4:1
|
LL | type Foo = (impl Sized, u8);
| -------- `Foo` declared as private
LL | pub fn foo() -> Foo {
| ^^^^^^^^^^^^^^^^^^^ can't leak private type alias
error: aborting due to previous error
For more information about this error, try `rustc --explain E0446`.
|