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
ec7c02612527d185c379900b613311bc1dcbf7dc
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
109 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>() {}
progress, stuff compiles now
2021-03-01 12:50:09 +01:00
//~^ ERROR defaults for const parameters are
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4891ms Template: 3ms
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