mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
12 lines
342 B
Rust
12 lines
342 B
Rust
// aux-build:xc-private-method-lib.rs
|
|
|
|
extern crate xc_private_method_lib;
|
|
|
|
fn main() {
|
|
let _ = xc_private_method_lib::Struct{ x: 10 }.meth_struct();
|
|
//~^ ERROR associated function `meth_struct` is private
|
|
|
|
let _ = xc_private_method_lib::Enum::Variant1(20).meth_enum();
|
|
//~^ ERROR associated function `meth_enum` is private
|
|
}
|