Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created April 21, 2019 21:22
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/08641fd7ac458e7258da0f6b929c1eba to your computer and use it in GitHub Desktop.
Save rust-play/08641fd7ac458e7258da0f6b929c1eba to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
#[allow(dead_code)]
struct Foo<'a> {
a: std::marker::PhantomData<&'a ()>
}
trait Bar {}
impl Bar for Foo<'_> {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment