<!-- Thank you for filing a bug report! 🐛 Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug. --> I tried this code: ```rust fn constant<const C: usize>() -> impl use< Sized {} ``` I expected to see this happen: anything Instead, this happened: nothing ### Meta <!-- If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. --> `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
matthiaskrgr commentedon Apr 20, 2024
The problem here is that the compilation fails, however rustc does not issue any sort of diagnostic to tell the user what went wrong.
Rollup merge of rust-lang#124169 - compiler-errors:parser-fatal, r=ol…
Rollup merge of rust-lang#124169 - compiler-errors:parser-fatal, r=ol…
Unrolled build for rust-lang#124169