2019-02-11 12:29:10 -06:00
|
|
|
error[E0423]: expected function, found struct `B`
|
|
|
|
--> $DIR/issue-42944.rs:9:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | B(());
|
2019-02-11 12:29:10 -06:00
|
|
|
| ^ constructor is not visible here due to private fields
|
|
|
|
|
|
|
|
error[E0425]: cannot find function `B` in this scope
|
|
|
|
--> $DIR/issue-42944.rs:15:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | B(());
|
2019-02-11 12:29:10 -06:00
|
|
|
| ^ not found in this scope
|
|
|
|
help: possible candidate is found in another module, you can import it into scope
|
|
|
|
|
|
|
|
|
LL | use foo::B;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0423, E0425.
|
2019-02-11 12:29:10 -06:00
|
|
|
For more information about an error, try `rustc --explain E0423`.
|