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-08 23:06:31 +0300 |
| commit | b3f75353a237f3623483c1e237be480140a8c3e1 (patch) | |
| tree | a769f4d38cf7d807a27d8685f26d77db3b0b5f91 /tests/ui/use | |
| parent | d4f880f8ce832cd7560bb2f1ebc34f967055ffd7 (diff) | |
| download | rust-b3f75353a237f3623483c1e237be480140a8c3e1.tar.gz rust-b3f75353a237f3623483c1e237be480140a8c3e1.zip | |
UI tests: add missing diagnostic kinds where possible
Diffstat (limited to 'tests/ui/use')
| -rw-r--r-- | tests/ui/use/use-keyword.rs | 4 | ||||
| -rw-r--r-- | tests/ui/use/use-mod/use-mod-2.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/use/use-keyword.rs b/tests/ui/use/use-keyword.rs index 840cddcb907..95f30365167 100644 --- a/tests/ui/use/use-keyword.rs +++ b/tests/ui/use/use-keyword.rs @@ -7,10 +7,10 @@ mod a { //~^ ERROR `self` imports are only allowed within a { } list use super as B; //~^ ERROR unresolved import `super` [E0432] - //~| no `super` in the root + //~| NOTE no `super` in the root use super::{self as C}; //~^ ERROR unresolved import `super` [E0432] - //~| no `super` in the root + //~| NOTE no `super` in the root } } diff --git a/tests/ui/use/use-mod/use-mod-2.rs b/tests/ui/use/use-mod/use-mod-2.rs index 9373a62ba36..57ff135c4d8 100644 --- a/tests/ui/use/use-mod/use-mod-2.rs +++ b/tests/ui/use/use-mod/use-mod-2.rs @@ -1,11 +1,11 @@ mod foo { use self::{self}; //~^ ERROR unresolved import `self` [E0432] - //~| no `self` in the root + //~| NOTE no `self` in the root use super::{self}; //~^ ERROR unresolved import `super` [E0432] - //~| no `super` in the root + //~| NOTE no `super` in the root } fn main() {} |
