rust/tests/ui/imports/glob-resolve1.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

115 lines
2.8 KiB
Plaintext
Raw Normal View History

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
|
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
|
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;
| ^
|
note: the enum is defined here
2020-09-01 16:12:52 -05:00
--> $DIR/glob-resolve1.rs:14:5
|
2020-09-01 16:12:52 -05:00
LL | / pub enum B {
LL | | B1,
LL | | }
| |_____^
help: you might have meant to use the following enum variant
|
LL | B::B1;
| ~~~~~
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
|
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
|
help: consider importing this function
|
2023-03-17 21:18:39 -05:00
LL + use other::import;
|
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-03-09 06:03:44 -06:00
LL | foo::<A>();
| ^ help: an enum with a similar name exists: `B`
2018-08-08 07:28:26 -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-03-09 06:03:44 -06:00
LL | foo::<C>();
| ^ help: an enum with a similar name exists: `B`
2018-08-08 07:28:26 -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-03-09 06:03:44 -06:00
LL | foo::<D>();
| ^ help: an enum with a similar name exists: `B`
2018-08-08 07:28:26 -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
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`.