2023-06-19 09:06:00 -05:00
|
|
|
warning: trait `PrivNonPrincipal` is more private than the item `leak_dyn_nonprincipal`
|
|
|
|
--> $DIR/private-in-public-non-principal.rs:7:1
|
2023-05-18 06:57:45 -05:00
|
|
|
|
|
|
|
|
LL | pub fn leak_dyn_nonprincipal() -> Box<dyn PubPrincipal + PrivNonPrincipal> { loop {} }
|
2023-06-29 08:24:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `leak_dyn_nonprincipal` is reachable at visibility `pub`
|
|
|
|
|
|
2023-05-18 06:57:45 -05:00
|
|
|
note: but trait `PrivNonPrincipal` is only usable at visibility `pub(crate)`
|
2023-06-19 09:06:00 -05:00
|
|
|
--> $DIR/private-in-public-non-principal.rs:5:1
|
2023-05-18 06:57:45 -05:00
|
|
|
|
|
|
|
|
LL | auto trait PrivNonPrincipal {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-06-19 09:06:00 -05:00
|
|
|
= note: `#[warn(private_interfaces)]` on by default
|
2023-05-18 06:57:45 -05:00
|
|
|
|
2020-03-21 19:47:23 -05:00
|
|
|
error: missing documentation for an associated function
|
2023-06-19 09:06:00 -05:00
|
|
|
--> $DIR/private-in-public-non-principal.rs:13:9
|
2018-12-16 07:18:45 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub fn check_doc_lint() {}
|
2018-12-16 07:18:45 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2023-06-19 09:06:00 -05:00
|
|
|
--> $DIR/private-in-public-non-principal.rs:10:8
|
2018-12-16 07:18:45 -06:00
|
|
|
|
|
|
|
|
LL | #[deny(missing_docs)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error; 1 warning emitted
|
2018-12-16 07:18:45 -06:00
|
|
|
|