error[E0277]: `icedwright_types::role::Button` cannot be checked
--> tests/compile_fail/button_not_checkable.rs:6:46
|
6 | .child(role::Button, "Delete", |b| b.checked(true))
| ^^^^^^^ this role has no checked state
|
= help: the trait `Checkable` is not implemented for `icedwright_types::role::Button`
= note: narrow an untyped handle with `.into_role::<role::CheckBox>()`, or use a role that implements `Checkable`
= help: the following other types implement trait `Checkable`:
icedwright_types::role::CheckBox
icedwright_types::role::MenuItemCheckBox
icedwright_types::role::MenuItemRadio
icedwright_types::role::RadioButton
icedwright_types::role::Switch
icedwright_types::role::TreeItem
note: required by a bound in `NodeBuilder::<R>::checked`
--> src/builder.rs
|
| pub fn checked(self, state: impl Into<Checked>) -> Self
| ------- required by a bound in this associated function
| where
| R: Checkable,
| ^^^^^^^^^ required by this bound in `NodeBuilder::<R>::checked`