]> git.proxmox.com Git - rustc.git/blame - tests/ui/type-alias-impl-trait/privacy.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / type-alias-impl-trait / privacy.stderr
CommitLineData
781aab86
FG
1warning: type alias `Foo` is more private than the item `foo`
2 --> $DIR/privacy.rs:6:1
fe692bf9 3 |
fe692bf9 4LL | pub fn foo() -> Foo {
781aab86
FG
5 | ^^^^^^^^^^^^^^^^^^^ function `foo` is reachable at visibility `pub`
6 |
7note: but type alias `Foo` is only usable at visibility `pub(crate)`
8 --> $DIR/privacy.rs:5:1
9 |
10LL | type Foo = (impl Sized, u8);
11 | ^^^^^^^^
12 = note: `#[warn(private_interfaces)]` on by default
fe692bf9 13
781aab86 14warning: 1 warning emitted
fe692bf9 15