2024-01-05 14:55:09 -06:00
|
|
|
error[E0423]: cannot initialize a tuple struct which contains private fields
|
|
|
|
--> $DIR/suggest-constructor-cycle-error.rs:7:29
|
2024-01-05 14:50:52 -06:00
|
|
|
|
|
2024-01-05 14:55:09 -06:00
|
|
|
LL | const CONST_NAME: a::Uuid = a::Uuid(());
|
|
|
|
| ^^^^^^^
|
2024-01-05 14:50:52 -06:00
|
|
|
|
|
2024-01-05 14:55:09 -06:00
|
|
|
note: constructor is not visible here due to private fields
|
|
|
|
--> $DIR/auxiliary/suggest-constructor-cycle-error.rs:2:21
|
|
|
|
|
|
|
|
|
LL | pub struct Uuid(());
|
|
|
|
| ^^ private field
|
2024-01-05 14:50:52 -06:00
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
2024-01-05 14:55:09 -06:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|