mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
210 B
Rust
14 lines
210 B
Rust
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() {}
|