2016-08-19 16:44:47 +02:00
|
|
|
trait Foo {
|
|
|
|
fn dummy(&self) { }
|
|
|
|
}
|
|
|
|
|
2016-08-24 17:43:51 +05:30
|
|
|
pub trait Bar : Foo {}
|
2016-11-12 12:24:17 +02:00
|
|
|
//~^ ERROR private trait `Foo` in public interface [E0445]
|
2016-08-24 17:43:51 +05:30
|
|
|
pub struct Bar2<T: Foo>(pub T);
|
2016-11-12 12:24:17 +02:00
|
|
|
//~^ ERROR private trait `Foo` in public interface [E0445]
|
2016-08-24 17:43:51 +05:30
|
|
|
pub fn foo<T: Foo> (t: T) {}
|
2016-11-12 12:24:17 +02:00
|
|
|
//~^ ERROR private trait `Foo` in public interface [E0445]
|
2016-08-19 16:44:47 +02:00
|
|
|
|
|
|
|
fn main() {}
|