diff --git a/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr b/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr index 807d73637e7f..c0c69a7bd57a 100644 --- a/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr +++ b/tests/ui/attributes/crate-root-path-in-different-file/crate-root-path-in-different-file.stderr @@ -1,5 +1,5 @@ error: the `#![crate_name]` attribute can only be used at the crate root - --> $DIR/submod.rs:1:1 + --> $DIR/submod.rs:2:1 | LL | #![crate_name = "bar"] | ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/attributes/crate-root-path-in-different-file/submod.rs b/tests/ui/attributes/crate-root-path-in-different-file/submod.rs index 8c030e6dc373..f3a36d031b48 100644 --- a/tests/ui/attributes/crate-root-path-in-different-file/submod.rs +++ b/tests/ui/attributes/crate-root-path-in-different-file/submod.rs @@ -1 +1,2 @@ +//@ ignore-auxiliary (used by `./crate-root-path-in-different-file.rs`) #![crate_name = "bar"]