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