rust/tests/ui/error-codes/E0446.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
576 B
Plaintext
Raw Normal View History

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