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
55b6f649024b372af901b3412a6d36c4284ccf3d
rust/tests/ui/hygiene/lambda-var-hygiene.rs

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

13 lines
212 B
Rust
Raw Normal View History

tests: Add missing run-pass annotations
2019-07-27 00:54:25 +03:00
// run-pass
added xfailed tests for two other flavors of var hygiene
2013-09-20 23:37:19 -07:00
// shouldn't affect evaluation of $ex:
Modernize macro_rules! invocations macro_rules! is like an item that defines a macro. Other items don't have a trailing semicolon, or use a paren-delimited body. If there's an argument for matching the invocation syntax, e.g. parentheses for an expr macro, then I think that applies more strongly to the *inner* delimiters on the LHS, wrapping the individual argument patterns.
2015-01-02 14:44:21 -08:00
macro_rules! bad_macro {
($ex:expr) => ({(|_x| { $ex }) (9) })
}
added xfailed tests for two other flavors of var hygiene
2013-09-20 23:37:19 -07:00
Mass rename uint/int to usize/isize Now that support has been removed, all lingering use cases are renamed.
2015-03-25 17:06:52 -07:00
fn takes_x(_x : isize) {
added xfailed tests for two other flavors of var hygiene
2013-09-20 23:37:19 -07:00
assert_eq!(bad_macro!(_x),8);
}
fn main() {
takes_x(8);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4728ms Template: 6ms
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