2018-08-08 07:28:26 -05:00
|
|
|
error[E0624]: associated constant `ID` is private
|
2020-03-22 18:09:42 -05:00
|
|
|
--> $DIR/associated-const-private-impl.rs:13:30
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-07-17 13:13:50 -05:00
|
|
|
LL | const ID: i32 = 1;
|
2022-02-13 09:27:59 -06:00
|
|
|
| ------------- private associated constant defined here
|
2021-07-17 13:13:50 -05:00
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | assert_eq!(1, bar1::Foo::ID);
|
2020-03-22 18:09:42 -05:00
|
|
|
| ^^ private associated constant
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0624`.
|