]> git.lizzy.rs Git - rust.git/blob - tests/ui/editions/edition-keywords-2015-2018-parsing.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / editions / edition-keywords-2015-2018-parsing.rs
1 // edition:2015
2 // aux-build:edition-kw-macro-2018.rs
3
4 #[macro_use]
5 extern crate edition_kw_macro_2018;
6
7 mod module {
8     pub fn async() {}
9 }
10
11 pub fn check_async() {
12     let mut async = 1; // OK
13     let mut r#async = 1; // OK
14
15     r#async = consumes_async!(async); // OK
16     r#async = consumes_async!(r#async); //~ ERROR no rules expected the token `r#async`
17     r#async = consumes_async_raw!(async); //~ ERROR no rules expected the token `async`
18     r#async = consumes_async_raw!(r#async); // OK
19
20     if passes_ident!(async) == 1 {} // OK
21     if passes_ident!(r#async) == 1 {} // OK
22     module::async(); // OK
23     module::r#async(); // OK
24 }
25
26 fn main() {}