Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

[BUG] window.rs has two fn "screen" #849

Open
wenfer opened this issue Nov 9, 2023 · 2 comments
Open

[BUG] window.rs has two fn "screen" #849

wenfer opened this issue Nov 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@wenfer
Copy link

wenfer commented Nov 9, 2023

Bug description

i compile my test.rs got a error

then i found two "screen" function in window.rs

Backtrace

error[E0034]: multiple applicable items in scope
--> src/main.rs:23:29
|
| let screen = window.screen().unwrap();
| ^^^^^^ multiple screen found

@wenfer wenfer added the bug Something isn't working label Nov 9, 2023
@wenfer wenfer changed the title [BUG] window.rs has two "screen" [BUG] window.rs has two fn "screen" Nov 15, 2023
@ski0090
Copy link
Contributor

ski0090 commented Jan 2, 2024

What did you “use”?

@ski0090
Copy link
Contributor

ski0090 commented Jan 2, 2024

multiple applicable items in scope
candidate #1 is defined in an impl of the trait `gtk::prelude::GtkMountOperationExt` for the type `O`
candidate #2 is defined in an impl of the trait `gtk::prelude::StyleContextExt` for the type `O`
candidate #3 is defined in an impl of the trait `gtk::prelude::WidgetExt` for the type `O`
candidate #4 is defined in an impl of the trait `gtk::prelude::GtkWindowExt` for the type `O`
candidate #5 is defined in an impl of the trait `gtk::prelude::InvisibleExtManual` for the type `T`

I saw the same error message

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants