File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #![ feature( dyn_trait) ]
2
+ fn main ( ) {
3
+ // checks rustfmt doesn't remove dyn
4
+ trait MyTrait {
5
+ fn method ( & self ) -> u64 ;
6
+ }
7
+ fn f1 ( a : Box < dyn MyTrait > ) { }
8
+
9
+ // checks if line wrap works correctly
10
+ trait Very_______________________Long__________________Name____________________Trait {
11
+ fn method ( & self ) -> u64 ;
12
+ }
13
+
14
+ fn f2 ( a : Box < dyn Very_______________________Long__________________Name____________________Trait + ' static , > ) { }
15
+
16
+ }
Original file line number Diff line number Diff line change
1
+ #![ feature( dyn_trait) ]
2
+ fn main ( ) {
3
+ // checks rustfmt doesn't remove dyn
4
+ trait MyTrait {
5
+ fn method ( & self ) -> u64 ;
6
+ }
7
+ fn f1 ( a : Box < dyn MyTrait > ) { }
8
+
9
+ // checks if line wrap works correctly
10
+ trait Very_______________________Long__________________Name____________________Trait
11
+ {
12
+ fn method ( & self ) -> u64 ;
13
+ }
14
+
15
+ fn f2 (
16
+ a : Box <
17
+ dyn Very_______________________Long__________________Name____________________Trait
18
+ + ' static ,
19
+ > ,
20
+ ) {
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments