fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0446]: private type `Bar` in public interface 2 --> $DIR/E0446.rs:10:5 3 | 4LL | struct Bar; 5 | ---------- `Bar` declared as private 6... 7LL | type Alias1 = Bar; 8 | ^^^^^^^^^^^ can't leak private type 9 10error[E0446]: private trait `PrivTr` in public interface 11 --> $DIR/E0446.rs:11:5 12 | 13LL | trait PrivTr {} 14 | ------------ `PrivTr` declared as private 15... 16LL | type Alias2 = Box<dyn PrivTr>; 17 | ^^^^^^^^^^^ can't leak private trait 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0446`.