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