Skip to content

Instantly share code, notes, and snippets.

@Ch00k
Last active December 30, 2020 09:35
Show Gist options
  • Save Ch00k/b78e73ef67dfa5a45be7827607d5b502 to your computer and use it in GitHub Desktop.
Save Ch00k/b78e73ef67dfa5a45be7827607d5b502 to your computer and use it in GitHub Desktop.

error.rs

pub struct Error {}

lib.rs

use error::*;
pub mod error;

tests/test.rs

use orthanc::Error; -> 
error[E0603]: struct `Error` is private
  --> tests/test.rs:3:14
   |
3  | use orthanc::Error;
   |              ^^^^^ private struct
   |
note: the struct `Error` is defined here
  --> /home/ay/projects/personal/orthanc-rs/src/lib.rs:66:5
   |
66 | use error::*;
   |     ^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment