File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -971,7 +971,7 @@ fn format_impl_ref_and_type(
971971 result. push_str ( format_defaultness ( of_trait. defaultness ) ) ;
972972 result. push_str ( format_safety ( of_trait. safety ) ) ;
973973 } else {
974- result. push_str ( format_constness_right ( * constness) ) ;
974+ result. push_str ( format_constness ( * constness) ) ;
975975 }
976976
977977 let shape = if context. config . style_edition ( ) >= StyleEdition :: Edition2024 {
Original file line number Diff line number Diff line change 1+ #![ feature( trait_alias, const_trait_impl) ]
2+
3+ const trait Bar { }
4+
5+ const trait Foo = Bar ;
6+
7+ impl const Bar for ( ) { }
8+
9+ // const impl gets reformatted to impl const.. for now
10+ const impl Bar for u8 { }
11+
12+ struct X ;
13+
14+ const impl X { }
Original file line number Diff line number Diff line change 33const trait Bar { }
44
55const trait Foo = Bar ;
6+
7+ impl const Bar for ( ) { }
8+
9+ // const impl gets reformatted to impl const.. for now
10+ impl const Bar for u8 { }
11+
12+ struct X ;
13+
14+ const impl X { }
You can’t perform that action at this time.
0 commit comments