Add a test for #2123 and update tests

This commit is contained in:
Seiichi Uchida 2017-12-17 15:23:17 +09:00
parent 7a4daf0d41
commit 366621eb46
4 changed files with 9 additions and 3 deletions

View File

@ -58,7 +58,7 @@ enum X {
}
pub enum EnumWithAttributes {
// This is a pre comment
//This is a pre comment
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
TupleVar(usize, usize, usize), /* AAAA AAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA
* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */

View File

@ -0,0 +1,6 @@
// rustfmt-wrap_comments: true
//hello
//world
fn main() {}

View File

@ -271,7 +271,7 @@ struct Foo {
aaaaaaa: u32, /* multi
* line
* comment
* */
*/
b: u32, // hi
do_not_push_this_comment1: u32, // comment1

View File

@ -176,7 +176,7 @@ union Foo {
aaaaaaa: u32, /* multi
* line
* comment
* */
*/
b: u32, // hi
do_not_push_this_comment1: u32, // comment1