Skip to content

Instantly share code, notes, and snippets.

@tiffany352
Created May 8, 2014 15:51
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 tiffany352/fe964e0791d19845d53c to your computer and use it in GitHub Desktop.
Save tiffany352/fe964e0791d19845d53c to your computer and use it in GitHub Desktop.
trait CloneParser<T> {}
impl<T, U: Parser<T>> CloneParser<T> for U {} // I think it's the `U: Parser<T>` here.
pub trait Parser<T>: CloneParser<T> {}
impl<'l, T> Parser<T> for uint {} // ok without this line.
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment