summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs')
-rw-r--r--src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs b/src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
new file mode 100644
index 000000000..6f4290e2a
--- /dev/null
+++ b/src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
@@ -0,0 +1,5 @@
+#[track_caller(1)]
+fn f() {}
+//~^^ ERROR malformed `track_caller` attribute input
+
+fn main() {}