summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/dont-print-desugared-async.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/dont-print-desugared-async.stderr')
-rw-r--r--src/test/ui/async-await/dont-print-desugared-async.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/async-await/dont-print-desugared-async.stderr b/src/test/ui/async-await/dont-print-desugared-async.stderr
new file mode 100644
index 000000000..d80467c7f
--- /dev/null
+++ b/src/test/ui/async-await/dont-print-desugared-async.stderr
@@ -0,0 +1,9 @@
+error[E0596]: cannot borrow data in a `&` reference as mutable
+ --> $DIR/dont-print-desugared-async.rs:5:20
+ |
+LL | async fn async_fn(&ref mut s: &[i32]) {}
+ | ^^^^^^^^^ cannot borrow as mutable through `&` reference
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0596`.