summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs')
-rw-r--r--src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs b/src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs
new file mode 100644
index 000000000..464f428c7
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/associated-types-bounds-wrapping.rs
@@ -0,0 +1,5 @@
+// Test proper wrapping of long associated type bounds
+
+pub trait HttpService {
+ type WsService: 'static + Service<Request = WsCommand, Response = WsResponse, Error = ServerError>;
+}