rust/tests/ui/imports/glob-resolve1.stderr
2025-12-09 17:29:23 +00:00

134 lines
3.1 KiB
Text

error[E0425]: cannot find function `fpriv` in this scope
--> $DIR/glob-resolve1.rs:27:5
|
LL | fpriv();
| ^^^^^ not found in this scope
|
note: function `bar::fpriv` exists but is inaccessible
--> $DIR/glob-resolve1.rs:8:5
|
LL | fn fpriv() {}
| ^^^^^^^^^^ not accessible
error[E0425]: cannot find function `epriv` in this scope
--> $DIR/glob-resolve1.rs:28:5
|
LL | epriv();
| ^^^^^ not found in this scope
|
note: function `bar::epriv` exists but is inaccessible
--> $DIR/glob-resolve1.rs:10:9
|
LL | fn epriv();
| ^^^^^^^^^^^ not accessible
error[E0423]: expected value, found enum `B`
--> $DIR/glob-resolve1.rs:29:5
|
LL | B;
| ^
|
note: the enum is defined here
--> $DIR/glob-resolve1.rs:15:5
|
LL | / pub enum B {
LL | | B1,
LL | | }
| |_____^
help: you might have meant to use the following enum variant
|
LL | B::B1;
| ++++
error[E0425]: cannot find value `C` in this scope
--> $DIR/glob-resolve1.rs:30:5
|
LL | C;
| ^ not found in this scope
|
note: unit struct `bar::C` exists but is inaccessible
--> $DIR/glob-resolve1.rs:19:5
|
LL | struct C;
| ^^^^^^^^^ not accessible
error[E0425]: cannot find function `import` in this scope
--> $DIR/glob-resolve1.rs:31:5
|
LL | import();
| ^^^^^^ not found in this scope
|
note: function `bar::import` exists but is inaccessible
--> $DIR/glob-resolve1.rs:8:5
|
LL | fn fpriv() {}
| ^^^^^^^^^^ not accessible
help: consider importing this function
|
LL + use other::import;
|
error[E0425]: cannot find type `A` in this scope
--> $DIR/glob-resolve1.rs:33:11
|
LL | pub enum B {
| ---------- similarly named enum `B` defined here
...
LL | foo::<A>();
| ^
|
note: enum `bar::A` exists but is inaccessible
--> $DIR/glob-resolve1.rs:12:5
|
LL | enum A {
| ^^^^^^ not accessible
help: an enum with a similar name exists
|
LL - foo::<A>();
LL + foo::<B>();
|
error[E0425]: cannot find type `C` in this scope
--> $DIR/glob-resolve1.rs:34:11
|
LL | pub enum B {
| ---------- similarly named enum `B` defined here
...
LL | foo::<C>();
| ^
|
note: struct `bar::C` exists but is inaccessible
--> $DIR/glob-resolve1.rs:19:5
|
LL | struct C;
| ^^^^^^^^^ not accessible
help: an enum with a similar name exists
|
LL - foo::<C>();
LL + foo::<B>();
|
error[E0425]: cannot find type `D` in this scope
--> $DIR/glob-resolve1.rs:35:11
|
LL | pub enum B {
| ---------- similarly named enum `B` defined here
...
LL | foo::<D>();
| ^
|
note: type alias `bar::D` exists but is inaccessible
--> $DIR/glob-resolve1.rs:21:5
|
LL | type D = isize;
| ^^^^^^^^^^^^^^^ not accessible
help: an enum with a similar name exists
|
LL - foo::<D>();
LL + foo::<B>();
|
error: aborting due to 8 previous errors
Some errors have detailed explanations: E0423, E0425.
For more information about an error, try `rustc --explain E0423`.