2023-06-19 17:06:00 +03:00
|
|
|
struct Bar;
|
|
|
|
|
trait PrivTr {}
|
2016-08-19 16:44:47 +02:00
|
|
|
|
2023-06-19 17:06:00 +03:00
|
|
|
pub trait PubTr {
|
|
|
|
|
type Alias1;
|
|
|
|
|
type Alias2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl PubTr for u8 {
|
|
|
|
|
type Alias1 = Bar; //~ ERROR E0446
|
|
|
|
|
type Alias2 = Box<dyn PrivTr>; //~ ERROR E0446
|
2016-08-19 16:44:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|