rust/tests/ui/error-codes/E0446.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
210 B
Rust
Raw Normal View History

struct Bar;
trait PrivTr {}
2016-08-19 22:44:47 +08: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 22:44:47 +08:00
}
fn main() {}