mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 03:54:40 +00:00
12 lines
188 B
Rust
12 lines
188 B
Rust
|
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
|
||
|
}
|