fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
595 B19 linesraw
1warning: trait `Private<<Self as Public>::P, <Self as Public>::R>` is more private than the item `Public`
2  --> $DIR/issue-18389.rs:9:1
3   |
4LL | / pub trait Public: Private<
5LL | |
6LL | |     <Self as Public>::P,
7LL | |     <Self as Public>::R
8LL | | > {
9   | |_^ trait `Public` is reachable at visibility `pub`
10   |
11note: but trait `Private<<Self as Public>::P, <Self as Public>::R>` is only usable at visibility `pub(crate)`
12  --> $DIR/issue-18389.rs:6:1
13   |
14LL | trait Private<P, R> {
15   | ^^^^^^^^^^^^^^^^^^^
16   = note: `#[warn(private_bounds)]` on by default
17
18warning: 1 warning emitted
19