mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Some comment tests
This commit is contained in:
parent
4fa66f1e1e
commit
580e5e277a
1 changed files with 16 additions and 2 deletions
|
@ -285,7 +285,11 @@ $0enum Bar {
|
|||
sort_items,
|
||||
r#"
|
||||
$0trait Bar {
|
||||
fn a() {}
|
||||
fn a() {
|
||||
|
||||
}
|
||||
|
||||
// comment for c
|
||||
fn c() {}
|
||||
fn z() {}
|
||||
fn b() {}
|
||||
|
@ -293,8 +297,12 @@ $0trait Bar {
|
|||
"#,
|
||||
r#"
|
||||
trait Bar {
|
||||
fn a() {}
|
||||
fn a() {
|
||||
|
||||
}
|
||||
|
||||
fn b() {}
|
||||
// comment for c
|
||||
fn c() {}
|
||||
fn z() {}
|
||||
}
|
||||
|
@ -311,6 +319,9 @@ struct Bar;
|
|||
$0impl Bar {
|
||||
fn c() {}
|
||||
fn a() {}
|
||||
/// long
|
||||
/// doc
|
||||
/// comment
|
||||
fn z() {}
|
||||
fn d() {}
|
||||
}
|
||||
|
@ -321,6 +332,9 @@ impl Bar {
|
|||
fn a() {}
|
||||
fn c() {}
|
||||
fn d() {}
|
||||
/// long
|
||||
/// doc
|
||||
/// comment
|
||||
fn z() {}
|
||||
}
|
||||
"#,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue