]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0445.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0445.rs
1 trait Foo {
2     fn dummy(&self) { }
3 }
4
5 pub trait Bar : Foo {}
6 //~^ ERROR private trait `Foo` in public interface [E0445]
7 pub struct Bar2<T: Foo>(pub T);
8 //~^ ERROR private trait `Foo` in public interface [E0445]
9 pub fn foo<T: Foo> (t: T) {}
10 //~^ ERROR private trait `Foo` in public interface [E0445]
11
12 fn main() {}