Add failing test case
This commit is contained in:
parent
e0f2e1560f
commit
789efede82
@ -271,6 +271,34 @@ fn main() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn partial_fill_option() {
|
||||
check_assist(
|
||||
fill_match_arms,
|
||||
r#"
|
||||
enum Option<T> { Some(T), None }
|
||||
use Option::*;
|
||||
|
||||
fn main() {
|
||||
match None$0 {
|
||||
None => {}
|
||||
}
|
||||
}
|
||||
"#,
|
||||
r#"
|
||||
enum Option<T> { Some(T), None }
|
||||
use Option::*;
|
||||
|
||||
fn main() {
|
||||
match None {
|
||||
None => {}
|
||||
Some(${0:_}) => {}
|
||||
}
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn partial_fill_or_pat() {
|
||||
check_assist(
|
||||
|
Loading…
Reference in New Issue
Block a user