summaryrefslogtreecommitdiffstats
path: root/vendor/rustversion/tests/ui/const-not-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustversion/tests/ui/const-not-fn.rs')
-rw-r--r--vendor/rustversion/tests/ui/const-not-fn.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/rustversion/tests/ui/const-not-fn.rs b/vendor/rustversion/tests/ui/const-not-fn.rs
new file mode 100644
index 000000000..215df7d7d
--- /dev/null
+++ b/vendor/rustversion/tests/ui/const-not-fn.rs
@@ -0,0 +1,4 @@
+#[rustversion::attr(all(), const)]
+pub struct S;
+
+fn main() {}