Created
December 29, 2019 22:54
-
-
Save goddessfreya/b67e4045ab6ab4cc7eb691ce174ac1e9 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[E0605]: non-primitive cast: `std::iter::Map<std::boxed::Box<dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::x11::Config)>>, [closure@glutin/src/platform_impl/unix/unix.rs:59:48: 59:98]>` as `std::boxed::Box<dyn std::iter::Iterator<Item = (config::ConfigAttribs, platform_impl::platform_impl::Config)>>` | |
--> glutin/src/platform_impl/unix/unix.rs:59:36 | |
| | |
59 | .map(|configs| configs.map(|(attribs, config)| (attribs, Config::X11(config))) as Box<_>), | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment