You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0405]: cannot find trait `IsA` in crate `glib`
--> atk/src/editable_text.rs:9:19
|
9 | impl<T: glib::IsA<crate::EditableText>> Sealed for T {}
| ^^^ not found in `glib`
|
help: consider importing one of these items
|
8 + use crate::editable_text::IsA;
|
8 + use glib::prelude::IsA;
|
help: if you import `IsA`, refer to it directly
|
9 - impl<T: glib::IsA<crate::EditableText>> Sealed for T {}
9 + impl<T: IsA<crate::EditableText>> Sealed for T {}
|
error[E0405]: cannot find trait `IsA` in crate `glib`
--> atk/src/table.rs:9:19
|
9 | impl<T: glib::IsA<crate::Table>> Sealed for T {}
| ^^^ not found in `glib`
|
help: consider importing one of these items
|
8 + use crate::table::IsA;
|
8 + use glib::prelude::IsA;
|
help: if you import `IsA`, refer to it directly
|
9 - impl<T: glib::IsA<crate::Table>> Sealed for T {}
9 + impl<T: IsA<crate::Table>> Sealed for T {}
|
For more information about this error, try `rustc --explain E0405`.
error: could not compile `atk` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
--explain
The code refers to a trait that is not in scope.
Erroneous code example:
struct Foo;
impl SomeTrait for Foo {} // error: trait `SomeTrait` is not in scope
Please verify that the name of the trait wasn't misspelled and ensure that it was imported. Example:
// solution 1:
use some_file::SomeTrait;
// solution 2:
trait SomeTrait {
// some functions
}
struct Foo;
impl SomeTrait for Foo { // ok!
// implements functions
}
When I attempt to compile
examples/basics(but it's not restricted to this example, also I can't compile none of my programs).Executed on 2024-03-03:
cd examples/basicscargo bError
It fails with this message:
--explain
Printout