]> git.lizzy.rs Git - rust.git/blob - tests/ui/methods/method-not-found-but-doc-alias.rs
Rollup merge of #107154 - glaubitz:m68k-alloc, r=JohnTitor
[rust.git] / tests / ui / methods / method-not-found-but-doc-alias.rs
1 struct Foo;
2
3 impl Foo {
4     #[doc(alias = "quux")]
5     fn bar(&self) {}
6 }
7
8 fn main() {
9     Foo.quux();
10     //~^ ERROR  no method named `quux` found for struct `Foo` in the current scope
11 }