2018-08-08 07:28:26 -05:00
|
|
|
error[E0425]: cannot find function `fpriv` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:26:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fpriv();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2021-09-17 17:07:41 -05:00
|
|
|
note: function `bar::fpriv` exists but is inaccessible
|
|
|
|
--> $DIR/glob-resolve1.rs:7:5
|
|
|
|
|
|
|
|
|
LL | fn fpriv() {}
|
|
|
|
| ^^^^^^^^^^ not accessible
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `epriv` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:27:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | epriv();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2021-09-17 17:07:41 -05:00
|
|
|
note: function `bar::epriv` exists but is inaccessible
|
|
|
|
--> $DIR/glob-resolve1.rs:9:9
|
|
|
|
|
|
|
|
|
LL | fn epriv();
|
|
|
|
| ^^^^^^^^^^^ not accessible
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0423]: expected value, found enum `B`
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:28:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | B;
|
2020-10-12 10:43:49 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: the enum is defined here
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:14:5
|
2020-10-12 10:43:49 -05:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | / pub enum B {
|
|
|
|
LL | | B1,
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2020-10-12 10:43:49 -05:00
|
|
|
help: you might have meant to use the following enum variant
|
|
|
|
|
|
|
|
|
LL | B::B1;
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find value `C` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:29:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | C;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ not found in this scope
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2021-09-17 17:07:41 -05:00
|
|
|
note: unit struct `bar::C` exists but is inaccessible
|
|
|
|
--> $DIR/glob-resolve1.rs:18:5
|
|
|
|
|
|
|
|
|
LL | struct C;
|
|
|
|
| ^^^^^^^^^ not accessible
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `import` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:30:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | import();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^ not found in this scope
|
2020-06-21 11:31:49 -05:00
|
|
|
|
|
|
|
|
help: consider importing this function
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use other::import;
|
2020-06-21 11:31:49 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `A` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:32:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | pub enum B {
|
2020-03-21 09:03:58 -05:00
|
|
|
| ---------- similarly named enum `B` defined here
|
2019-10-14 19:20:50 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo::<A>();
|
2021-09-10 18:15:40 -05:00
|
|
|
| ^ help: an enum with a similar name exists: `B`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-09-17 17:07:41 -05:00
|
|
|
note: enum `bar::A` exists but is inaccessible
|
|
|
|
--> $DIR/glob-resolve1.rs:11:5
|
|
|
|
|
|
|
|
|
LL | enum A {
|
|
|
|
| ^^^^^^ not accessible
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `C` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:33:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | pub enum B {
|
2020-03-21 09:03:58 -05:00
|
|
|
| ---------- similarly named enum `B` defined here
|
2019-10-14 19:20:50 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo::<C>();
|
2021-09-10 18:15:40 -05:00
|
|
|
| ^ help: an enum with a similar name exists: `B`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-09-17 17:07:41 -05:00
|
|
|
note: struct `bar::C` exists but is inaccessible
|
|
|
|
--> $DIR/glob-resolve1.rs:18:5
|
|
|
|
|
|
|
|
|
LL | struct C;
|
|
|
|
| ^^^^^^^^^ not accessible
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `D` in this scope
|
2020-09-01 16:12:52 -05:00
|
|
|
--> $DIR/glob-resolve1.rs:34:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | pub enum B {
|
2020-03-21 09:03:58 -05:00
|
|
|
| ---------- similarly named enum `B` defined here
|
2019-10-14 19:20:50 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo::<D>();
|
2021-09-10 18:15:40 -05:00
|
|
|
| ^ help: an enum with a similar name exists: `B`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-09-17 17:07:41 -05:00
|
|
|
note: type alias `bar::D` exists but is inaccessible
|
|
|
|
--> $DIR/glob-resolve1.rs:20:5
|
|
|
|
|
|
|
|
|
LL | type D = isize;
|
|
|
|
| ^^^^^^^^^^^^^^^ not accessible
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0412, E0423, E0425.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0412`.
|