blob: 6d6c4f97c0657521d4c8a52c5019dcf43ff0f805 [file] [log] [blame] [edit]
struct Bar;
trait PrivTr {}
pub trait PubTr {
type Alias1;
type Alias2;
}
impl PubTr for u8 {
type Alias1 = Bar; //~ ERROR E0446
type Alias2 = Box<dyn PrivTr>; //~ ERROR E0446
}
fn main() {}