Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created January 5, 2015 01:36
Show Gist options
  • Save stepancheg/af8f6749636d85a3ad5c to your computer and use it in GitHub Desktop.
Save stepancheg/af8f6749636d85a3ad5c to your computer and use it in GitHub Desktop.
fn bar(foo: &Foo) {}
fn baz(foo: &Foo) {
// this call works
bar(foo);
}
trait Foo {
fn qux(&self) {
// this doesn't, and error is
// error: the trait `core::kinds::Sized` is not implemented for the type `Self`
bar(self);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment