diff --git a/src/test/ui/asm/naked-invalid-attr.stderr b/src/test/ui/asm/naked-invalid-attr.stderr index beaa34140c9..565c2986a66 100644 --- a/src/test/ui/asm/naked-invalid-attr.stderr +++ b/src/test/ui/asm/naked-invalid-attr.stderr @@ -1,11 +1,3 @@ -error: attribute should be applied to a function definition - --> $DIR/naked-invalid-attr.rs:9:5 - | -LL | #[naked] - | ^^^^^^^^ -LL | fn f(); - | ------- not a function definition - error: attribute should be applied to a function definition --> $DIR/naked-invalid-attr.rs:13:1 | @@ -32,6 +24,14 @@ LL | #[naked] LL | extern "C" fn invoke(&self); | ---------------------------- not a function definition +error: attribute should be applied to a function definition + --> $DIR/naked-invalid-attr.rs:9:5 + | +LL | #[naked] + | ^^^^^^^^ +LL | fn f(); + | ------- not a function definition + error: attribute should be applied to a function definition --> $DIR/naked-invalid-attr.rs:6:1 |