Skip to content

Commit

Permalink
Remove type ascription test
Browse files Browse the repository at this point in the history
This passes `cargo test`, but rust-analyzer reports "Syntax Error:
expected SEMICOLON" error on this, so disable for now.
  • Loading branch information
taiki-e committed Dec 10, 2022
1 parent 070ed19 commit 36acf01
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/auto_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,13 +1011,6 @@ mod nightly {
}
assert_eq!(fn_traits1(true)(1), 2);

// parentheses and type ascription
#[auto_enum(Fn)]
fn fn_traits2(option: bool) -> impl Fn(i32) -> i32 {
(if option { |x| x + 1 } else { |y| y - 1 }): _
}
assert_eq!(fn_traits2(true)(1), 2);

#[auto_enum(Iterator, Clone)]
let _y = match 0 {
0 => 2..8,
Expand Down

0 comments on commit 36acf01

Please sign in to comment.