Created
October 23, 2018 19:27
-
-
Save rust-play/9e51f5b8bb3a915a99d958f5ea982f1a to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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