Created
June 2, 2014 17:41
-
-
Save kaeluka/9531bb772aa11a48d0c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
trait Foo { | |
fn foo(); | |
} | |
impl Foo for &int { | |
fn foo() { | |
println!("&int") | |
} | |
} | |
fn main() { | |
println!("...") | |
} | |
//test.rs:5:14: 5:18 error: missing lifetime specifier | |
//test.rs:5 impl Foo for &int { | |
// ^~~~ | |
//error: aborting due to previous error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment