Skip to content

missing diagnostic #124195

Closed
Closed

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

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Apr 20, 2024
  2. matthiaskrgr commented on Apr 20, 2024

    @matthiaskrgr
    MemberAuthor

    The problem here is that the compilation fails, however rustc does not issue any sort of diagnostic to tell the user what went wrong.

  3. added 2 commits that reference this issue on Apr 23, 2024
    bba2788
    afb6c46
  4. added a commit that references this issue on Apr 23, 2024
    ec04ef6
  5. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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