Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created October 23, 2018 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/9e51f5b8bb3a915a99d958f5ea982f1a to your computer and use it in GitHub Desktop.
Save rust-play/9e51f5b8bb3a915a99d958f5ea982f1a to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
use std::marker::PhantomData;
pub struct Authorization<A, S> {
phantom: PhantomData<*const (A,S)>
}
fn main() {
let _a = Authorization::<String, String> {
phantom: PhantomData,
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment