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/parser/issues/issue-44406.rs

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

10 lines
164 B
Rust
Raw Normal View History

Fix a bug in diagnostics for `x as usize < y` Improve diagnostics for `x as usize << y`
2017-10-09 20:02:17 +03:00
macro_rules! foo {
($rest: tt) => {
Recover from `Foo(a: 1, b: 2)` Detect likely `struct` literal using parentheses as delimiters and emit targeted suggestion instead of type ascription parse error. Fix #61326.
2021-09-07 17:45:16 +00:00
bar(baz: $rest) //~ ERROR invalid `struct` delimiters or `fn` call arguments
Fix a bug in diagnostics for `x as usize < y` Improve diagnostics for `x as usize << y`
2017-10-09 20:02:17 +03:00
}
}
fn main() {
Recover from `Foo(a: 1, b: 2)` Detect likely `struct` literal using parentheses as delimiters and emit targeted suggestion instead of type ascription parse error. Fix #61326.
2021-09-07 17:45:16 +00:00
foo!(true);
Fix a bug in diagnostics for `x as usize < y` Improve diagnostics for `x as usize << y`
2017-10-09 20:02:17 +03:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4932ms 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