mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
22 lines
576 B
Plaintext
22 lines
576 B
Plaintext
error[E0446]: private type `Bar` in public interface
|
|
--> $DIR/E0446.rs:10:5
|
|
|
|
|
LL | struct Bar;
|
|
| ---------- `Bar` declared as private
|
|
...
|
|
LL | type Alias1 = Bar;
|
|
| ^^^^^^^^^^^ can't leak private type
|
|
|
|
error[E0446]: private trait `PrivTr` in public interface
|
|
--> $DIR/E0446.rs:11:5
|
|
|
|
|
LL | trait PrivTr {}
|
|
| ------------ `PrivTr` declared as private
|
|
...
|
|
LL | type Alias2 = Box<dyn PrivTr>;
|
|
| ^^^^^^^^^^^ can't leak private trait
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0446`.
|