blob: 2951e69d1c263b7f2fa74d49c6c0ff9ef07c90f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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`.
|