Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/const-generics/issue-93647.rs

8 lines
139 B
Rust
Raw Normal View History

resolve lifetimes for const generic defaults
2022-02-04 20:56:32 -08:00
struct X<const N: usize = {
(||1usize)()
Make error messages great again (and fix clippy and add test)
2022-09-21 15:02:15 +00:00
//~^ ERROR cannot call non-const closure
Move const trait bounds checks to MIR constck Fixes #109543. When checking paths in HIR typeck, we don't want to check for const predicates since all we want might just be a function pointer. Therefore we move this to MIR constck and check that bounds are met during MIR constck.
2023-03-24 09:17:51 +00:00
//~| ERROR the trait bound
resolve lifetimes for const generic defaults
2022-02-04 20:56:32 -08:00
}>;
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 569ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API