We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 467c53f + 7a93a26 commit da1e3c9Copy full SHA for da1e3c9
src/types.rs
@@ -320,7 +320,7 @@ where
320
let list_lo = context.snippet_provider.span_after(span, "(");
321
let (list_str, tactic) = if inputs.len() == 0 {
322
let tactic = get_tactics(&[], &output, shape);
323
- let list_hi = context.snippet_provider.span_before_last(span, ")");
+ let list_hi = context.snippet_provider.span_before(span, ")");
324
let comment = context
325
.snippet_provider
326
.span_to_snippet(mk_sp(list_lo, list_hi))?
tests/target/issue-3539.rs
@@ -0,0 +1,8 @@
1
+use std::io::Error;
2
+
3
+fn main() {
4
+ let _read_num: fn() -> Result<(i32), Error> = || -> Result<(i32), Error> {
5
+ let a = 1;
6
+ Ok(a)
7
+ };
8
+}
0 commit comments