Skip to content

missing diagnostic #124195

Closed
Closed
@matthiaskrgr

Description

@matthiaskrgr

I tried this code:

fn constant<const C: usize>() -> impl use< Sized {}

I expected to see this happen:
anything

Instead, this happened:
nothing

Meta

rustc --version --verbose:

rustc 1.79.0-nightly (f9b161492 2024-04-19)
binary: rustc
commit-hash: f9b16149208c8a8a349c32813312716f6603eb6f
commit-date: 2024-04-19
host: x86_64-unknown-linux-gnu
release: 1.79.0-nightly
LLVM version: 18.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.F-precise_capturing`#![feature(precise_capturing)]`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions