Skip to content

Instantly share code, notes, and snippets.

@bltavares
Created May 25, 2015 18:44
Show Gist options
  • Save bltavares/30d3960b131fbf8415eb to your computer and use it in GitHub Desktop.
Save bltavares/30d3960b131fbf8415eb to your computer and use it in GitHub Desktop.
struct Authentication<'a> {
email: &'a str,
token: &'a str,
domain: Option<&'a str>
}
impl<'a, I> Into<I> for Authentication<'a> where I: Iterator<Item=(&'a str, &'a str)> {
fn into(self) -> I {
}
}
src/lib.rs:18:1: 21:2 error: conflicting implementations for trait `core::convert::Into` [E0119]
src/lib.rs:18 impl<'a, I> Into<I> for Authentication<'a> where I: Iterator<Item=(&'a str, &'a str)> {
src/lib.rs:19 fn into(self) -> I {
src/lib.rs:20 }
src/lib.rs:21 }
src/lib.rs:18:1: 21:2 note: conflicting implementation in crate `core`
src/lib.rs:18 impl<'a, I> Into<I> for Authentication<'a> where I: Iterator<Item=(&'a str, &'a str)> {
src/lib.rs:19 fn into(self) -> I {
src/lib.rs:20 }
src/lib.rs:21 }
src/lib.rs:18:1: 21:2 error: conflicting implementations for trait `core::convert::Into` [E0119]
src/lib.rs:18 impl<'a, I> Into<I> for Authentication<'a> where I: Iterator<Item=(&'a str, &'a str)> {
src/lib.rs:19 fn into(self) -> I {
src/lib.rs:20 }
src/lib.rs:21 }
src/lib.rs:18:1: 21:2 note: conflicting implementation in crate `core`
src/lib.rs:18 impl<'a, I> Into<I> for Authentication<'a> where I: Iterator<Item=(&'a str, &'a str)> {
src/lib.rs:19 fn into(self) -> I {
src/lib.rs:20 }
src/lib.rs:21 }
error: aborting due to previous error
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment