intellij-rust/intellij-rust

E0562 (Abstract return types are not allowed in variable binding) is not detected

オープン

#9,381 opened on 2022/09/20

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Kotlin (376 件のフォーク)batch import
bughelp wantedsubsystem::highlighting

Repository metrics

Stars
 (4,526 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Environment

  • IntelliJ Rust plugin version: 0.4.180.4888-222-nightly
  • Rust toolchain version: 1.66.0-nightly (a37499ae6 2022-09-18) x86_64-apple-darwin
  • IDE name and version: CLion 2022.2.3 (CL-222.4167.35)
  • Operating system: macOS 12.5.1
  • Macro expansion: enabled
  • Additional experimental features: org.rust.cargo.features.settings.gutter, org.rust.cargo.emulate.terminal, org.rust.cargo.evaluate.build.scripts, org.rust.macros.proc

Problem description

In the meta issue this error is marked as supported.

Steps to reproduce

use crate::inner::T;

mod inner {
    pub trait T {
        type Output;
    }
}

fn func(_: impl T<Output=u32>) {} // normal usage

fn main() {
    let t: impl T<Output = u8>; // error
}

コントリビューターガイド