Update tests for braces on trait
Test that the opening brace of trait with long name or bounds with multiple lines will be put on the next line.
This commit is contained in:
parent
f5ebcd922e
commit
f1d29ff580
@ -7,7 +7,7 @@ fn main() {
|
||||
fn f1(a: Box<dyn MyTrait>) {}
|
||||
|
||||
// checks if line wrap works correctly
|
||||
trait Very_______________________Long__________________Name____________________Trait {
|
||||
trait Very_______________________Long__________________Name_______________________________Trait {
|
||||
fn method(&self) -> u64;
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,8 @@ pub trait Number
|
||||
+ BitAnd<Self, Output = Self>
|
||||
+ BitOr<Self, Output = Self>
|
||||
+ BitAndAssign
|
||||
+ BitOrAssign {
|
||||
+ BitOrAssign
|
||||
{
|
||||
// test
|
||||
fn zero() -> Self;
|
||||
}
|
||||
@ -201,7 +202,8 @@ pub trait SomeTrait
|
||||
+ Display
|
||||
+ Write
|
||||
+ Read
|
||||
+ FromStr {
|
||||
+ FromStr
|
||||
{
|
||||
// comment
|
||||
}
|
||||
|
||||
|
@ -7,8 +7,8 @@ fn main() {
|
||||
fn f1(a: Box<dyn MyTrait>) {}
|
||||
|
||||
// checks if line wrap works correctly
|
||||
trait Very_______________________Long__________________Name____________________Trait
|
||||
{
|
||||
trait Very_______________________Long__________________Name_______________________________Trait
|
||||
{
|
||||
fn method(&self) -> u64;
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,8 @@ trait MyTrait<
|
||||
BBBBBBBBBBBBBBBBBBBB,
|
||||
CCCCCCCCCCCCCCCCCCCC,
|
||||
DDDDDDDDDDDDDDDDDDDD,
|
||||
> {
|
||||
>
|
||||
{
|
||||
fn foo() {}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user