Skip to content

Instantly share code, notes, and snippets.

@pythonesque
Created August 3, 2014 14:41
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 pythonesque/8e04023a600518aae54f to your computer and use it in GitHub Desktop.
Save pythonesque/8e04023a600518aae54f to your computer and use it in GitHub Desktop.
use std::fmt;
trait Trait { }
impl <T: Trait> fmt::String for T {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
Err(fmt::WriteError)
}
}
fn main() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment