]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0445.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[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() {}