summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/method-not-found-but-doc-alias.rs
blob: 9c6d10029239b8035c92ab6a48d5136f15fe4866 (plain)
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
}