diff --git a/tests/ui/empty_enum.rs b/tests/ui/empty_enum.rs index a9ad5339b..987004bb3 100644 --- a/tests/ui/empty_enum.rs +++ b/tests/ui/empty_enum.rs @@ -1,8 +1,6 @@ #[cxx::bridge] mod ffi { - enum A { - - } + enum A {} } fn main() {} diff --git a/tests/ui/empty_enum.stderr b/tests/ui/empty_enum.stderr index c73578a9e..7f350191e 100644 --- a/tests/ui/empty_enum.stderr +++ b/tests/ui/empty_enum.stderr @@ -1,7 +1,5 @@ error: enums without any variants are not supported --> $DIR/empty_enum.rs:3:5 | -3 | / enum A { -4 | | -5 | | } - | |_____^ +3 | enum A {} + | ^^^^^^^^^ diff --git a/tests/ui/multiple_parse_error.rs b/tests/ui/multiple_parse_error.rs index 061eab64a..138d6d6c2 100644 --- a/tests/ui/multiple_parse_error.rs +++ b/tests/ui/multiple_parse_error.rs @@ -2,8 +2,7 @@ mod ffi { struct Monad; - extern "Haskell" { - } + extern "Haskell" {} } fn main() {} diff --git a/tests/ui/multiple_parse_error.stderr b/tests/ui/multiple_parse_error.stderr index 854aa9011..41895071f 100644 --- a/tests/ui/multiple_parse_error.stderr +++ b/tests/ui/multiple_parse_error.stderr @@ -7,5 +7,5 @@ error: struct with generic parameters is not supported yet error: unrecognized ABI --> $DIR/multiple_parse_error.rs:5:5 | -5 | extern "Haskell" { +5 | extern "Haskell" {} | ^^^^^^^^^^^^^^^^