rust/tests/target/issue-4245.rs
WhizSid b7c38c9d50 Fixed comment dropped between & and type issue (#4482)
* Fixed comment dropped between & and type issue

* Reduced nesting levels and avoided duplications

* Removed extra allocations
2020-11-29 13:26:58 -06:00

35 lines
404 B
Rust

fn a(
a: & // Comment
// Another comment
'a File,
) {
}
fn b(b: & /* Another Comment */ 'a File) {}
fn c(c: &'a /*Comment */ mut /*Comment */ File) {}
fn d(
c: & // Comment
'b // Multi Line
// Comment
mut // Multi Line
// Comment
File,
) {
}
fn e(
c: & // Comment
File,
) {
}
fn d(
c: & // Comment
mut // Multi Line
// Comment
File,
) {
}