summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-closures.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/static/static-closures.stderr')
-rw-r--r--src/test/ui/static/static-closures.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/static/static-closures.stderr b/src/test/ui/static/static-closures.stderr
new file mode 100644
index 000000000..99235e26e
--- /dev/null
+++ b/src/test/ui/static/static-closures.stderr
@@ -0,0 +1,9 @@
+error[E0697]: closures cannot be static
+ --> $DIR/static-closures.rs:2:5
+ |
+LL | static || {};
+ | ^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0697`.