my rustc version:
rustc 1.66.0-nightly (0da281b60 2022-10-27)
error[E0277]: the trait bound `String: Deref` is not satisfied
--> qmetaobject/src/qmetatype.rs:438:87
|
438 | const CONVERSION_TO_STRING: Option<fn(&Self) -> QString> = Some(|s| QString::from(&*s as &str));
| ^^^ the trait `~const Deref` is not implemented for `String`
|
note: the trait `Deref` is implemented for `String`, but that implementation is not `const`
--> qmetaobject/src/qmetatype.rs:438:87
|
438 | const CONVERSION_TO_STRING: Option<fn(&Self) -> QString> = Some(|s| QString::from(&*s as &str));
| ^^^
For more information about this error, try `rustc --explain E0277`.
my rustc version: rustc 1.66.0-nightly (0da281b60 2022-10-27)
I try to fix the issuse, it's work.