]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0445.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0445.stderr
1 error[E0445]: private trait `Foo` in public interface
2   --> $DIR/E0445.rs:5:1
3    |
4 LL | pub trait Bar : Foo {}
5    | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
6
7 error[E0445]: private trait `Foo` in public interface
8   --> $DIR/E0445.rs:7:1
9    |
10 LL | pub struct Bar2<T: Foo>(pub T);
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
12
13 error[E0445]: private trait `Foo` in public interface
14   --> $DIR/E0445.rs:9:1
15    |
16 LL | pub fn foo<T: Foo> (t: T) {}
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0445`.