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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/feature-gates/feature-gate-closure_lifetime_binder.rs

9 lines
292 B
Rust
Raw Normal View History

Parse closure binders This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature
2022-06-02 20:15:05 +04:00
fn main() {
Lower closure binders to hir & properly check them
2022-07-12 13:34:24 +04:00
for<> || -> () {};
Parse closure binders This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature
2022-06-02 20:15:05 +04:00
//~^ ERROR `for<...>` binders for closures are experimental
Lower closure binders to hir & properly check them
2022-07-12 13:34:24 +04:00
for<'a> || -> () {};
Parse closure binders This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature
2022-06-02 20:15:05 +04:00
//~^ ERROR `for<...>` binders for closures are experimental
Lower closure binders to hir & properly check them
2022-07-12 13:34:24 +04:00
for<'a, 'b> |_: &'a ()| -> () {};
Parse closure binders This is first step in implementing RFC 3216. - Parse `for<'a>` before closures in ast - Error in lowering - Add `closure_lifetime_binder` feature
2022-06-02 20:15:05 +04:00
//~^ ERROR `for<...>` binders for closures are experimental
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1106ms Template: 4ms
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