-
-
Save stepancheg/af8f6749636d85a3ad5c 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
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