Created
December 29, 2019 22:49
-
-
Save goddessfreya/046da2faf7733958867044d2367b269f 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/unix.rs:55:39 | |
| | |
53 | 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::Config)> + 'static)>, winit_types::error::Error>` because of return type | |
54 | match disp { | |
55 | Display::Wayland(disp) => wayland::Config::new(disp, cb) | |
| _______________________________________^ | |
56 | | .map(|configs| configs.map(|(attribs, config)| (attribs, Config::Wayland(config)))), | |
| |___________________________________________________________________________________________________^ expected struct `std::boxed::Box`, 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::Config)> + 'static)>, _>` | |
found enum `std::result::Result<std::iter::Map<std::boxed::Box<dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::wayland::Config)>>, [closure@glutin/src/platform_impl/unix/unix.rs:56:44: 56:98]>, _>` | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment