Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
647f1536d2f50b203ca9a67396225c4f7771e1c8
rust/tests/ui/const-generics/min_const_generics/default_function_param.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
128 B
Rust
Raw Normal View History

Some refactoring
2020-12-30 15:34:53 +00:00
#![crate_type = "lib"]
Add has_default to GenericParamDefKind::Const This currently creates a field which is always false on GenericParamDefKind for future use when consts are permitted to have defaults Update const_generics:default locations Previously just ignored them, now actually do something about them. Fix using type check instead of value Add parsing This adds all the necessary changes to lower const-generics defaults from parsing. Change P<Expr> to AnonConst This matches the arguments passed to instantiations of const generics, and makes it specific to just anonymous constants. Attempt to fix lowering bugs
2020-08-11 00:02:45 +00:00
Some refactoring
2020-12-30 15:34:53 +00:00
fn foo<const SIZE: usize = 5usize>() {}
Fortify generic param default checks
2025-08-06 01:26:26 +02:00
//~^ ERROR defaults for generic parameters are not allowed here
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1329ms 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