blob: a9a3aee2500fb5549c5f87aa57b345f5c7ca1069 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
trait Foo {
fn dummy(&self) { }
}
pub trait Bar : Foo {}
//~^ ERROR private trait `Foo` in public interface [E0445]
pub struct Bar2<T: Foo>(pub T);
//~^ ERROR private trait `Foo` in public interface [E0445]
pub fn foo<T: Foo> (t: T) {}
//~^ ERROR private trait `Foo` in public interface [E0445]
fn main() {}
|