blob: 50870905c30dd4c3254abc988b58892f98ede8f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
warning: type alias `Foo` is more private than the item `foo`
--> $DIR/privacy.rs:6:1
|
LL | pub fn foo() -> Foo {
| ^^^^^^^^^^^^^^^^^^^ function `foo` is reachable at visibility `pub`
|
note: but type alias `Foo` is only usable at visibility `pub(crate)`
--> $DIR/privacy.rs:5:1
|
LL | type Foo = (impl Sized, u8);
| ^^^^^^^^
= note: `#[warn(private_interfaces)]` on by default
warning: 1 warning emitted
|