mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Add generated docs
This commit is contained in:
parent
c2fd0c48a6
commit
91988f46b7
1 changed files with 27 additions and 0 deletions
|
@ -1504,6 +1504,33 @@ fn main() {
|
|||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn doctest_qualify_method_call() {
|
||||
check_doc_test(
|
||||
"qualify_method_call",
|
||||
r#####"
|
||||
struct Foo;
|
||||
impl Foo {
|
||||
fn foo(&self) {}
|
||||
}
|
||||
fn main() {
|
||||
let foo = Foo;
|
||||
foo.fo$0o();
|
||||
}
|
||||
"#####,
|
||||
r#####"
|
||||
struct Foo;
|
||||
impl Foo {
|
||||
fn foo(&self) {}
|
||||
}
|
||||
fn main() {
|
||||
let foo = Foo;
|
||||
Foo::foo(&foo);
|
||||
}
|
||||
"#####,
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn doctest_qualify_path() {
|
||||
check_doc_test(
|
||||
|
|
Loading…
Reference in a new issue