about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-28 14:18:36 -0400
committerMichael Goulet <michael@errs.io>2024-06-28 14:20:44 -0400
commit99365a5a7ace1092852784c2fa71b7fd5ef25e5d (patch)
treee5acba49c0c94bdf8e54d6199c71e5780dbdaae4 /src/tools/rustfmt/tests
parent82b4af7511a430e53d2ed554771754552e5ecca8 (diff)
downloadrust-99365a5a7ace1092852784c2fa71b7fd5ef25e5d.tar.gz
rust-99365a5a7ace1092852784c2fa71b7fd5ef25e5d.zip
Implement RTN support in rustfmt
Diffstat (limited to 'src/tools/rustfmt/tests')
-rw-r--r--src/tools/rustfmt/tests/target/return-type-notation.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/return-type-notation.rs b/src/tools/rustfmt/tests/target/return-type-notation.rs
new file mode 100644
index 00000000000..0f26e7e272b
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/return-type-notation.rs
@@ -0,0 +1,10 @@
+fn rtn()
+where
+    T: Trait<method(..): Send + 'static>,
+    T::method(..): Send + 'static,
+{
+}
+
+fn test() {
+    let x: T::method(..);
+}