diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-05 19:19:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-30 10:44:24 +0300 |
| commit | 20faf8532b5ddeb636ba3078344b0cad058c8f8a (patch) | |
| tree | 04512e985a99a3715b4a0829826be7139fdcee09 /tests/ui/blind | |
| parent | 427288b3ce2d574847fdb41cc3184c893750e09a (diff) | |
| download | rust-20faf8532b5ddeb636ba3078344b0cad058c8f8a.tar.gz rust-20faf8532b5ddeb636ba3078344b0cad058c8f8a.zip | |
compiletest: Make diagnostic kind mandatory on line annotations
Diffstat (limited to 'tests/ui/blind')
| -rw-r--r-- | tests/ui/blind/blind-item-item-shadow.rs | 4 | ||||
| -rw-r--r-- | tests/ui/blind/blind-item-item-shadow.stderr | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/blind/blind-item-item-shadow.rs b/tests/ui/blind/blind-item-item-shadow.rs index 82d07ea7091..43841569417 100644 --- a/tests/ui/blind/blind-item-item-shadow.rs +++ b/tests/ui/blind/blind-item-item-shadow.rs @@ -1,7 +1,9 @@ +//@ dont-require-annotations: NOTE + mod foo { pub mod foo { } } use foo::foo; //~^ ERROR the name `foo` is defined multiple times -//~| `foo` reimported here +//~| NOTE `foo` reimported here fn main() {} diff --git a/tests/ui/blind/blind-item-item-shadow.stderr b/tests/ui/blind/blind-item-item-shadow.stderr index 08f5f5b47ed..7d13fbea37b 100644 --- a/tests/ui/blind/blind-item-item-shadow.stderr +++ b/tests/ui/blind/blind-item-item-shadow.stderr @@ -1,5 +1,5 @@ error[E0255]: the name `foo` is defined multiple times - --> $DIR/blind-item-item-shadow.rs:3:5 + --> $DIR/blind-item-item-shadow.rs:5:5 | LL | mod foo { pub mod foo { } } | ------- previous definition of the module `foo` here |
