]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18389.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-18389.stderr
1 error[E0445]: private trait `Private<<Self as Public>::P, <Self as Public>::R>` in public interface
2   --> $DIR/issue-18389.rs:7:1
3    |
4 LL |   trait Private<P, R> {
5    |   - `Private<<Self as Public>::P, <Self as Public>::R>` declared as private
6 ...
7 LL | / pub trait Public: Private<
8 LL | |
9 LL | |     <Self as Public>::P,
10 LL | |     <Self as Public>::R
11 ...  |
12 LL | |     fn call_inner(&self);
13 LL | | }
14    | |_^ can't leak private trait
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0445`.