summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-945.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-945.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-945.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-945.rs b/src/tools/rustfmt/tests/source/issue-945.rs
new file mode 100644
index 000000000..37d703c46
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-945.rs
@@ -0,0 +1,5 @@
+impl Bar { default const unsafe fn foo() { "hi" } }
+
+impl Baz { default unsafe extern "C" fn foo() { "hi" } }
+
+impl Foo for Bar { default fn foo() { "hi" } }