summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0446.rs
blob: 6d6c4f97c0657521d4c8a52c5019dcf43ff0f805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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() {}