mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-27 13:00:49 +00:00
Use ui test syntax that does not interfere with rustfmt
This commit is contained in:
parent
1a3cf4b3c1
commit
fa5d58cd00
@ -71,5 +71,5 @@ enum E3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
@//fail
|
__FAIL__;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
error: expected expression, found `@`
|
error[E0425]: cannot find value `__FAIL__` in this scope
|
||||||
--> tests/ui/conflict/alias-enum.rs:74:5
|
--> tests/ui/conflict/alias-enum.rs:74:5
|
||||||
|
|
|
|
||||||
74 | @//fail
|
74 | __FAIL__;
|
||||||
| ^ expected expression
|
| ^^^^^^^^ not found in this scope
|
||||||
|
|
||||||
warning: unreachable pattern
|
warning: unreachable pattern
|
||||||
--> tests/ui/conflict/alias-enum.rs:13:9
|
--> tests/ui/conflict/alias-enum.rs:13:9
|
||||||
|
@ -35,5 +35,5 @@ struct S3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
@//fail
|
__FAIL__;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
error: expected expression, found `@`
|
error[E0425]: cannot find value `__FAIL__` in this scope
|
||||||
--> tests/ui/conflict/alias.rs:38:5
|
--> tests/ui/conflict/alias.rs:38:5
|
||||||
|
|
|
|
||||||
38 | @//fail
|
38 | __FAIL__;
|
||||||
| ^ expected expression
|
| ^^^^^^^^ not found in this scope
|
||||||
|
|
||||||
warning: unreachable pattern
|
warning: unreachable pattern
|
||||||
--> tests/ui/conflict/alias.rs:10:5
|
--> tests/ui/conflict/alias.rs:10:5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user