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
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/parser/recover-assoc-const-constraint.rs

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

10 lines
206 B
Rust
Raw Normal View History

parse: improve recovery for assoc eq constraints.
2020-03-22 06:09:24 +01:00
#[cfg(FALSE)]
fn syntax() {
Use Term in ProjectionPredicate ProjectionPredicate should be able to handle both associated types and consts so this adds the first step of that. It mainly just pipes types all the way down, not entirely sure how to handle consts, but hopefully that'll come with time.
2022-01-08 09:28:12 +00:00
bar::<Item = 42>();
Add term to ExistentialProjection Also prevent ICE when adding a const in associated const equality.
2022-01-13 07:39:58 +00:00
//~^ ERROR associated const equality is incomplete
Use Term in ProjectionPredicate ProjectionPredicate should be able to handle both associated types and consts so this adds the first step of that. It mainly just pipes types all the way down, not entirely sure how to handle consts, but hopefully that'll come with time.
2022-01-08 09:28:12 +00:00
bar::<Item = { 42 }>();
Add term to ExistentialProjection Also prevent ICE when adding a const in associated const equality.
2022-01-13 07:39:58 +00:00
//~^ ERROR associated const equality is incomplete
parse: improve recovery for assoc eq constraints.
2020-03-22 06:09:24 +01:00
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1442ms 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