]> git.lizzy.rs Git - rust.git/blob - tests/ui/xc-private-method2.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / xc-private-method2.stderr
1 error[E0624]: associated function `meth_struct` is private
2   --> $DIR/xc-private-method2.rs:6:52
3    |
4 LL |     let _ = xc_private_method_lib::Struct{ x: 10 }.meth_struct();
5    |                                                    ^^^^^^^^^^^ private associated function
6    |
7   ::: $DIR/auxiliary/xc-private-method-lib.rs:12:5
8    |
9 LL |     fn meth_struct(&self) -> isize {
10    |     ------------------------------ private associated function defined here
11
12 error[E0624]: associated function `meth_enum` is private
13   --> $DIR/xc-private-method2.rs:9:55
14    |
15 LL |     let _ = xc_private_method_lib::Enum::Variant1(20).meth_enum();
16    |                                                       ^^^^^^^^^ private associated function
17    |
18   ::: $DIR/auxiliary/xc-private-method-lib.rs:27:5
19    |
20 LL |     fn meth_enum(&self) -> isize {
21    |     ---------------------------- private associated function defined here
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0624`.