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