mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
Add a test for #2907
This commit is contained in:
parent
d88139893f
commit
1b8f0ff1b6
@ -93,3 +93,29 @@ impl Foo {
|
||||
.map(|(k, deps)| (k.clone(), deps.iter().cloned().filter(|d| dirties.contains(&d)).collect()))
|
||||
}
|
||||
}
|
||||
|
||||
// #2907
|
||||
fn foo() {
|
||||
let x = foo
|
||||
.bar?? ? // comment
|
||||
.baz;
|
||||
let x = foo
|
||||
.bar? ??
|
||||
// comment
|
||||
.baz;
|
||||
let x = foo
|
||||
.bar? ? ? // comment
|
||||
// comment
|
||||
.baz;
|
||||
let x = foo
|
||||
.bar? ?? // comment
|
||||
// comment
|
||||
? ??
|
||||
// comment
|
||||
? ??
|
||||
// comment
|
||||
???
|
||||
// comment
|
||||
? ? ?
|
||||
.baz;
|
||||
}
|
||||
|
@ -116,3 +116,25 @@ impl Foo {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// #2907
|
||||
fn foo() {
|
||||
let x = foo
|
||||
.bar??? // comment
|
||||
.baz;
|
||||
let x = foo
|
||||
.bar???
|
||||
// comment
|
||||
.baz;
|
||||
let x = foo
|
||||
.bar??? // comment
|
||||
// comment
|
||||
.baz;
|
||||
let x = foo
|
||||
.bar??????????????? // comment
|
||||
// comment
|
||||
// comment
|
||||
// comment
|
||||
// comment
|
||||
.baz;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user