mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 07:00:47 +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() {}
|