Skip to content

impl Trait in associated types is unstable #118

@ctaoist

Description

@ctaoist

编译提示如下错误:

error[E0658]: `impl Trait` in associated types is unstable
   .../ricq-core-0.1.19/src/msg/mod.rs:101:19
    |
101 |   type IntoIter = impl Iterator<Item = RQElem> + 'static;
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
    = help: add `#![feature(impl_trait_in_assoc_type)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `ricq-core` (lib) due to previous error

编译器版本:nightly-x86_64_linux_1.72

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions