summaryrefslogtreecommitdiffstats
path: root/vendor/tracing-attributes/tests/ui/const_instrument.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/tracing-attributes/tests/ui/const_instrument.rs')
-rw-r--r--vendor/tracing-attributes/tests/ui/const_instrument.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/tracing-attributes/tests/ui/const_instrument.rs b/vendor/tracing-attributes/tests/ui/const_instrument.rs
new file mode 100644
index 000000000..a251e8f66
--- /dev/null
+++ b/vendor/tracing-attributes/tests/ui/const_instrument.rs
@@ -0,0 +1,8 @@
+#![allow(unreachable_code)]
+
+#[tracing::instrument]
+const fn unit() {
+ ""
+}
+
+fn main() {}