2020-09-02 07:40:56 +00:00
|
|
|
error[E0446]: private type `Bar` in public interface
|
2023-06-19 14:06:00 +00:00
|
|
|
--> $DIR/E0446.rs:10:5
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2023-06-19 14:06:00 +00:00
|
|
|
LL | struct Bar;
|
|
|
|
| ---------- `Bar` declared as private
|
|
|
|
...
|
|
|
|
LL | type Alias1 = Bar;
|
|
|
|
| ^^^^^^^^^^^ can't leak private type
|
2018-02-08 03:35:35 +00:00
|
|
|
|
2023-06-19 14:06:00 +00:00
|
|
|
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
|
2018-02-08 03:35:35 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0446`.
|