Created
December 29, 2019 22:51
-
-
Save goddessfreya/b83bf78e562a52ca9aa8c6144ea8b7e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0308]: mismatched types | |
--> glutin/src/platform_impl/unix/wayland.rs:53:9 | |
| | |
52 | pub fn new(disp: &Display, cb: ConfigBuilder) -> Result<Box<dyn Iterator<Item = (ConfigAttribs, Config)>>, Error> { | |
| ---------------------------------------------------------------- expected `std::result::Result<std::boxed::Box<(dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::wayland::Config)> + 'static)>, winit_types::error::Error>` because of return type | |
53 | / egl::Config::new(&disp.0, cb, |confs| Ok(confs[0])) | |
54 | | .map(|configs| Box::new(configs.map(|(attribs, config)| (attribs, Config(config))))) | |
| |________________________________________________________________________________________________^ expected trait `std::iter::Iterator`, found struct `std::iter::Map` | |
| | |
= note: expected enum `std::result::Result<std::boxed::Box<(dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::wayland::Config)> + 'static)>, _>` | |
found enum `std::result::Result<std::boxed::Box<std::iter::Map<std::boxed::Box<dyn std::iter::Iterator<Item = (config::ConfigAttribs, api::egl::Config)>>, [closure@glutin/src/platform_impl/unix/wayland.rs:54:49: 54:94]>>, _>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment