error: cannot find macro `lazy_static!` in this scope
--> prog.rs:1:1
|
1 | lazy_static! {
| ^^^^^^^^^^^
error[E0412]: cannot find type `Display` in this scope
--> prog.rs:5:27
|
5 | pub struct Displ(pub *mut Display);
| ^^^^^^^
help: a struct with a similar name exists
|
5 | pub struct Displ(pub *mut Displ);
| ^^^^^
help: possible candidates are found in other modules, you can import them into scope
|
5 | use std::fmt::Display;
|
5 | use std::path::Display;
|
error[E0425]: cannot find function `xopen_display` in this scope
--> prog.rs:11:15
|
11 | match xopen_display() {
| ^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `xclose_display` in this scope
--> prog.rs:20:9
|
20 | xclose_display(self.0);
| ^^^^^^^^^^^^^^ not found in this scope
error[E0601]: `main` function not found in crate `prog`
|
= note: consider adding a `main` function to `prog.rs`
error: aborting due to 5 previous errors
Some errors occurred: E0412, E0425, E0601.
For more information about an error, try `rustc --explain E0412`.