rust/src/test/ui/issues/issue-42944.stderr

22 lines
627 B
Plaintext
Raw Normal View History

error[E0423]: expected function, tuple struct or tuple variant, found struct `B`
--> $DIR/issue-42944.rs:9:9
|
2019-03-09 06:03:44 -06:00
LL | B(());
| ^ constructor is not visible here due to private fields
error[E0425]: cannot find function, tuple struct or tuple variant `B` in this scope
--> $DIR/issue-42944.rs:16:9
|
2019-03-09 06:03:44 -06:00
LL | B(());
| ^ not found in this scope
|
help: consider importing this tuple struct
|
LL | use foo::B;
|
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0423, E0425.
For more information about an error, try `rustc --explain E0423`.