mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
11 lines
317 B
Rust
11 lines
317 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 method `meth_struct` is private
|
|
|
|
let _ = xc_private_method_lib::Enum::Variant1(20).meth_enum();
|
|
//~^ ERROR method `meth_enum` is private
|
|
}
|