|
| 1 | +// With one comment per item - after the the `;` |
| 2 | +use crate::foo1 ; |
| 3 | +use crate::foo1 ; /* 2nd foo1 - comment after ; */ |
| 4 | +use crate::foo2::bar ; /* 1st foo1::bar - comment after ; */ |
| 5 | +use crate::foo2::bar ; |
| 6 | + |
| 7 | +// With one comment per item - before the the `;` |
| 8 | +use crate::foo3 ; |
| 9 | +use crate::foo3 /* 2nd foo3 - comment before ; */ ; |
| 10 | +use crate::foo4::bar /* 1st foo4::bar - comment before ; */ ; |
| 11 | +use crate::foo4::bar ; |
| 12 | + |
| 13 | +// With multiline comments or multi comments - after the `;` |
| 14 | +use crate::foo5; /* foo5 - Multiline comment before ; line 1 |
| 15 | + * foo5 - Multiline comment before ; line 2 */ |
| 16 | +use crate::foo5; |
| 17 | +use crate::foo6; // foo6- mixed comments before ; - 1st line comment ; |
| 18 | + /* foo6- mixed comments before ; - 2nd block comment */ |
| 19 | +use crate::foo6; |
| 20 | + |
| 21 | +// With multiline comments or multi comments - before the `;` |
| 22 | +use crate::foo8 // foo8- mixed comments before ; - 1st line comment ; |
| 23 | + /* foo8- mixed comments before ; - 2nd block comment */ ; |
| 24 | +use crate::foo8; |
| 25 | + |
| 26 | +// With two comments per item |
| 27 | +use crate::foo11 ; /* 1st foo11 - comment */ |
| 28 | +use crate::foo11 ; /* 2nd foo11 - comment */ |
| 29 | + |
| 30 | +// With one comment for a module |
| 31 | +use crate::foo21::{self} ; /* external comment for foo21 {self} */ |
| 32 | +use crate::foo21::{foo} ; /* external comment for foo21 {foo} */ |
| 33 | +use crate::foo21::{bar} ; |
| 34 | + |
| 35 | +// With internal and external comment for a module |
| 36 | +use crate::foo22::{self} ; /* external comment for foo22 {self} */ |
| 37 | +use crate::foo22::{foo /* internal comment for foo22 {foo} */} ; |
| 38 | +use crate::foo22::{bar /* internal comment for foo22 {bar} */} ; |
0 commit comments