Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatched gtk-rs version causes a long compiler error #226

Open
Tracked by #102
antoyo opened this issue Jul 8, 2020 · 0 comments
Open
Tracked by #102

Mismatched gtk-rs version causes a long compiler error #226

antoyo opened this issue Jul 8, 2020 · 0 comments
Milestone

Comments

@antoyo
Copy link
Owner

antoyo commented Jul 8, 2020

It gives a long and not so useful compiler error now:

error[E0277]: the trait bound `gtk::auto::window::Window: glib::object::IsA<gtk::auto::widget::Widget>` is not satisfied
   --> src/main.rs:29:6
    |
29  | impl Widget for Win {
    |      ^^^^^^ the trait `glib::object::IsA<gtk::auto::widget::Widget>` is not implemented for `gtk::auto::window::Window`
    | 
   ::: /home/bouanto/.cargo/registry/src/github.com-1ecc6299db9ec823/relm-0.19.0/src/widget.rs:31:45
    |
31  |           Self::Root: Clone + IsA<Object> + IsA<gtk::Widget>,
    |                                             ---------------- required by this bound in `relm::widget::Widget`
    |
help: trait impl with same name found
   --> /home/bouanto/.cargo/registry/src/github.com-1ecc6299db9ec823/glib-0.8.2/src/object.rs:748:9
    |
748 |         unsafe impl $crate::object::IsA<$super_name> for $name { }
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `glib` are being used?

error[E0277]: the trait bound `gtk::auto::window::Window: glib::object::IsA<glib::object::Object>` is not satisfied
   --> src/main.rs:29:6
    |
29  | impl Widget for Win {
    |      ^^^^^^ the trait `glib::object::IsA<glib::object::Object>` is not implemented for `gtk::auto::window::Window`
    | 
   ::: /home/bouanto/.cargo/registry/src/github.com-1ecc6299db9ec823/relm-0.19.0/src/widget.rs:31:31
    |
31  |           Self::Root: Clone + IsA<Object> + IsA<gtk::Widget>,
    |                               ----------- required by this bound in `relm::widget::Widget`
    |
help: trait impl with same name found
   --> /home/bouanto/.cargo/registry/src/github.com-1ecc6299db9ec823/glib-0.8.2/src/object.rs:748:9
    |
748 |         unsafe impl $crate::object::IsA<$super_name> for $name { }
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `glib` are being used?

error[E0277]: the trait bound `glib::object::ObjectRef: std::convert::From<gtk::auto::window::Window>` is not satisfied
  --> src/main.rs:29:6
   |
29 | impl Widget for Win {
   |      ^^^^^^ the trait `std::convert::From<gtk::auto::window::Window>` is not implemented for `glib::object::ObjectRef`
   |
   = note: required because of the requirements on the impl of `std::convert::Into<glib::object::ObjectRef>` for `gtk::auto::window::Window`
@antoyo antoyo added this to the 1.0 milestone Feb 13, 2021
@antoyo antoyo mentioned this issue Feb 13, 2021
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant