about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/privacy.stderr
blob: eeb49b1a4ac9228fd3e7e014dac85fad1dbe7a4e (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:7: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