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