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-07 21:35:35 -06: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
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`.