Skip to content

Instantly share code, notes, and snippets.

@kaeluka
Created June 2, 2014 17: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 kaeluka/9531bb772aa11a48d0c8 to your computer and use it in GitHub Desktop.
Save kaeluka/9531bb772aa11a48d0c8 to your computer and use it in GitHub Desktop.
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