mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
chore: change casing for variants in tests
This commit is contained in:
parent
a10372dac6
commit
d03c789798
1 changed files with 6 additions and 6 deletions
|
@ -51,11 +51,11 @@ fn record_pattern_field_enum() {
|
|||
check(
|
||||
r#"
|
||||
//- minicore:result
|
||||
enum Baz { FOO, BAR }
|
||||
enum Baz { Foo, Bar }
|
||||
|
||||
fn foo(baz: Baz) {
|
||||
match baz {
|
||||
Baz::FOO => (),
|
||||
Baz::Foo => (),
|
||||
$0
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ fn foo(baz: Baz) {
|
|||
md core
|
||||
ev Err
|
||||
ev Ok
|
||||
bn Baz::BAR Baz::BAR$0
|
||||
bn Baz::Bar Baz::Bar$0
|
||||
bn Err(…) Err($1)$0
|
||||
bn Ok(…) Ok($1)$0
|
||||
kw mut
|
||||
|
@ -77,11 +77,11 @@ fn foo(baz: Baz) {
|
|||
check(
|
||||
r#"
|
||||
//- minicore:result
|
||||
enum Baz { FOO, BAR }
|
||||
enum Baz { Foo, Bar }
|
||||
|
||||
fn foo(baz: Baz) {
|
||||
match baz {
|
||||
FOO => (),
|
||||
Foo => (),
|
||||
$0
|
||||
}
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ fn foo(baz: Baz) {
|
|||
md core
|
||||
ev Err
|
||||
ev Ok
|
||||
bn Baz::BAR Baz::BAR$0
|
||||
bn Baz::Bar Baz::Bar$0
|
||||
bn Err(…) Err($1)$0
|
||||
bn Ok(…) Ok($1)$0
|
||||
kw mut
|
||||
|
|
Loading…
Reference in a new issue