]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0445.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[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() {}