rust/tests/source/associated-types-bounds-wrapping.rs
Michael Smith baafa4f011
Fix wrapping of bounds in associated types
Bounds were wrapped to the full width of the line rather then the width
available after the "type ...: ", resulting in rustfmt unnecessarily producing
lines that were longer than the maximum width.
2017-08-19 15:30:53 -07:00

6 lines
212 B
Rust

// rustfmt-max_width: 100
// Test proper wrapping of long associated type bounds
pub trait HttpService {
type WsService: 'static + Service<Request = WsCommand, Response = WsResponse, Error = ServerError>;
}