1 2 3 4 5 6 7 8 9 10 11
struct Foo; impl Foo { #[doc(alias = "quux")] fn bar(&self) {} } fn main() { Foo.quux(); //~^ ERROR no method named `quux` found for struct `Foo` in the current scope }