summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/mod_file_not_exist.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/parser/mod_file_not_exist.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/parser/mod_file_not_exist.stderr')
-rw-r--r--tests/ui/parser/mod_file_not_exist.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/parser/mod_file_not_exist.stderr b/tests/ui/parser/mod_file_not_exist.stderr
new file mode 100644
index 000000000..62456d518
--- /dev/null
+++ b/tests/ui/parser/mod_file_not_exist.stderr
@@ -0,0 +1,18 @@
+error[E0583]: file not found for module `not_a_real_file`
+ --> $DIR/mod_file_not_exist.rs:3:1
+ |
+LL | mod not_a_real_file;
+ | ^^^^^^^^^^^^^^^^^^^^
+ |
+ = help: to create the module `not_a_real_file`, create file "$DIR/not_a_real_file.rs" or "$DIR/not_a_real_file/mod.rs"
+
+error[E0433]: failed to resolve: use of undeclared crate or module `mod_file_aux`
+ --> $DIR/mod_file_not_exist.rs:7:16
+ |
+LL | assert_eq!(mod_file_aux::bar(), 10);
+ | ^^^^^^^^^^^^ use of undeclared crate or module `mod_file_aux`
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0433, E0583.
+For more information about an error, try `rustc --explain E0433`.