summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/suggest-path-instead-of-mod-dot-item.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/resolve/suggest-path-instead-of-mod-dot-item.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/resolve/suggest-path-instead-of-mod-dot-item.stderr')
-rw-r--r--tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr140
1 files changed, 140 insertions, 0 deletions
diff --git a/tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr b/tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr
new file mode 100644
index 000000000..a4ce0deeb
--- /dev/null
+++ b/tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr
@@ -0,0 +1,140 @@
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5
+ |
+LL | a.I
+ | ^- help: use the path separator to refer to an item: `::`
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:23:5
+ |
+LL | a.g()
+ | ^- help: use the path separator to refer to an item: `::`
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:29:5
+ |
+LL | a.b.J
+ | ^- help: use the path separator to refer to an item: `::`
+
+error[E0423]: expected value, found module `a::b`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:35:5
+ |
+LL | pub const I: i32 = 1;
+ | --------------------- similarly named constant `I` defined here
+...
+LL | a::b.J
+ | ^^^^
+ |
+help: use the path separator to refer to an item
+ |
+LL | a::b::J
+ | ~~
+help: a constant with a similar name exists
+ |
+LL | a::I.J
+ | ~
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:42:5
+ |
+LL | a.b.f();
+ | ^- help: use the path separator to refer to an item: `::`
+
+error[E0423]: expected value, found module `a::b`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:46:12
+ |
+LL | pub const I: i32 = 1;
+ | --------------------- similarly named constant `I` defined here
+...
+LL | v.push(a::b);
+ | ^^^-
+ | |
+ | help: a constant with a similar name exists: `I`
+
+error[E0423]: expected value, found module `a::b`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:52:5
+ |
+LL | pub const I: i32 = 1;
+ | --------------------- similarly named constant `I` defined here
+...
+LL | a::b.f()
+ | ^^^^
+ |
+help: use the path separator to refer to an item
+ |
+LL | a::b::f()
+ | ~~
+help: a constant with a similar name exists
+ |
+LL | a::I.f()
+ | ~
+
+error[E0423]: expected value, found module `a::b`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:59:5
+ |
+LL | pub const I: i32 = 1;
+ | --------------------- similarly named constant `I` defined here
+...
+LL | a::b
+ | ^^^-
+ | |
+ | help: a constant with a similar name exists: `I`
+
+error[E0423]: expected function, found module `a::b`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:65:5
+ |
+LL | pub const I: i32 = 1;
+ | --------------------- similarly named constant `I` defined here
+...
+LL | a::b()
+ | ^^^-
+ | |
+ | help: a constant with a similar name exists: `I`
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9
+ |
+LL | a
+ | ^ not a value
+...
+LL | module!().g::<()>(); // no `help` here!
+ | --------- in this macro invocation
+ |
+ = note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9
+ |
+LL | a
+ | ^ not a value
+...
+LL | module!().g; // no `help` here!
+ | --------- in this macro invocation
+ |
+ = note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:80:9
+ |
+LL | a.f()
+ | ^- help: use the path separator to refer to an item: `::`
+...
+LL | let _ = create!(method);
+ | --------------- in this macro invocation
+ |
+ = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0423]: expected value, found module `a`
+ --> $DIR/suggest-path-instead-of-mod-dot-item.rs:85:9
+ |
+LL | a.f
+ | ^- help: use the path separator to refer to an item: `::`
+...
+LL | let _ = create!(field);
+ | -------------- in this macro invocation
+ |
+ = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 13 previous errors
+
+For more information about this error, try `rustc --explain E0423`.