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