diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/hygiene/globs.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/hygiene/globs.stderr | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/test/ui/hygiene/globs.stderr b/src/test/ui/hygiene/globs.stderr new file mode 100644 index 000000000..bcfcc28ad --- /dev/null +++ b/src/test/ui/hygiene/globs.stderr @@ -0,0 +1,59 @@ +error[E0425]: cannot find function `f` in this scope + --> $DIR/globs.rs:22:9 + | +LL | f(); + | ^ not found in this scope + | +help: consider importing this function + | +LL | use foo::f; + | + +error[E0425]: cannot find function `g` in this scope + --> $DIR/globs.rs:15:5 + | +LL | g(); + | ^ not found in this scope +... +LL | / m! { +LL | | use bar::*; +LL | | g(); +LL | | f(); +LL | | } + | |_____- in this macro invocation + | + = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) +help: consider importing this function + | +LL | use bar::g; + | + +error[E0425]: cannot find function `f` in this scope + --> $DIR/globs.rs:61:12 + | +LL | n!(f); + | ----- in this macro invocation +... +LL | n!(f); + | ^ not found in this scope + | + = note: consider importing this function: + foo::f + = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0425]: cannot find function `f` in this scope + --> $DIR/globs.rs:65:17 + | +LL | n!(f); + | ----- in this macro invocation +... +LL | f + | ^ not found in this scope + | + = note: consider importing this function: + foo::f + = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to 4 previous errors + +For more information about this error, try `rustc --explain E0425`. |