mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
10 lines
166 B
Rust
10 lines
166 B
Rust
// aux-build:private-trait-xc.rs
|
|
|
|
extern crate private_trait_xc;
|
|
|
|
struct Bar;
|
|
|
|
impl private_trait_xc::Foo for Bar {}
|
|
//~^ ERROR: trait `Foo` is private
|
|
|
|
fn main() {}
|