2017-04-30 16:49:39 -05:00
|
|
|
// rustfmt-trailing_comma: Never
|
|
|
|
// Trailing comma
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let Lorem { ipsum, dolor, sit } = amet;
|
|
|
|
let Lorem {
|
|
|
|
ipsum,
|
|
|
|
dolor,
|
|
|
|
sit,
|
|
|
|
amet,
|
|
|
|
consectetur,
|
|
|
|
adipiscing
|
|
|
|
} = elit;
|
2017-05-12 16:44:57 -05:00
|
|
|
|
|
|
|
// #1544
|
|
|
|
if let VrMsg::ClientReply {
|
2017-06-14 06:39:07 -05:00
|
|
|
request_num: reply_req_num,
|
|
|
|
value,
|
|
|
|
..
|
|
|
|
} = msg
|
2017-06-11 23:01:41 -05:00
|
|
|
{
|
2017-05-12 16:44:57 -05:00
|
|
|
let _ = safe_assert_eq!(reply_req_num, request_num, op);
|
|
|
|
return Ok((request_num, op, value));
|
|
|
|
}
|
2017-06-19 02:00:04 -05:00
|
|
|
|
|
|
|
// #1710
|
|
|
|
pub struct FileInput {
|
|
|
|
input: StringInput,
|
|
|
|
file_name: OsString
|
|
|
|
}
|
|
|
|
match len {
|
|
|
|
Some(len) => Ok(new(self.input, self.pos + len)),
|
|
|
|
None => Err(self)
|
|
|
|
}
|
2017-04-30 16:49:39 -05:00
|
|
|
}
|