Skip to content

Commit

Permalink
Add minor syntax tests for async/await/try keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed May 19, 2019
1 parent a9f06f9 commit 48db5f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/syntax-rust/syntax_test_misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ let override = 1;
// ^^^^^^^^ invalid.illegal.rust
let macro = 1;
// ^^^^^ invalid.illegal.rust

// async/await
let x = async {}
// ^^^^^ keyword.control.rust
let y = future.await;
// ^^^^^ keyword.control.rust

// try keyword in 2018 edition
let x = try {}
// ^^^ keyword.control.rust

0 comments on commit 48db5f8

Please sign in to comment.