summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/no-mangle-closure.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/attributes/no-mangle-closure.stderr')
-rw-r--r--tests/ui/attributes/no-mangle-closure.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/attributes/no-mangle-closure.stderr b/tests/ui/attributes/no-mangle-closure.stderr
new file mode 100644
index 000000000..949eb7051
--- /dev/null
+++ b/tests/ui/attributes/no-mangle-closure.stderr
@@ -0,0 +1,8 @@
+error: `#[no_mangle]` cannot be used on a closure as it has no name
+ --> $DIR/no-mangle-closure.rs:9:6
+ |
+LL | (#[no_mangle] || y.0[0])()
+ | ^^^^^^^^^^^^
+
+error: aborting due to previous error
+