coverage: Tweak individual tests to be unaffected by rustfmt
Some of these tests use non-standard formatting that we can simulate by strategically adding `//` line comments. One contains `where` clauses that would be split across multiple lines, which we can keep on one line by moving the bounds to the generic type instead.
This commit is contained in:
parent
f1494425bb
commit
1f9353ae2c
11 changed files with 57 additions and 45 deletions
|
@ -8,12 +8,14 @@
|
|||
LL| |// signature should be handled in the same way.
|
||||
LL| |
|
||||
LL| 1|fn a() -> Option<i32>
|
||||
LL| 1|//
|
||||
LL| 1|{
|
||||
LL| 1| Some(7i32);
|
||||
LL| 1| Some(0)
|
||||
LL| 1|}
|
||||
LL| |
|
||||
LL| 1|fn b() -> Option<i32>
|
||||
LL| 1|//
|
||||
LL| 1|{
|
||||
LL| 1| Some(7i32)?;
|
||||
^0
|
||||
|
@ -21,6 +23,7 @@
|
|||
LL| 1|}
|
||||
LL| |
|
||||
LL| 1|fn c() -> Option<i32>
|
||||
LL| 1|//
|
||||
LL| 1|{
|
||||
LL| 1| let _ = Some(7i32)?;
|
||||
^0
|
||||
|
@ -28,6 +31,7 @@
|
|||
LL| 1|}
|
||||
LL| |
|
||||
LL| 1|fn d() -> Option<i32>
|
||||
LL| 1|//
|
||||
LL| 1|{
|
||||
LL| 1| let _: () = ();
|
||||
LL| 1| Some(7i32)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue