From 1376c5a617be5c25655d0d7cb63e3beaa5a6e026 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:20:39 +0200 Subject: Merging upstream version 1.70.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/thread-local/thread-local-mutation.stderr | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ui/thread-local/thread-local-mutation.stderr (limited to 'tests/ui/thread-local/thread-local-mutation.stderr') diff --git a/tests/ui/thread-local/thread-local-mutation.stderr b/tests/ui/thread-local/thread-local-mutation.stderr new file mode 100644 index 000000000..e5dc0e72e --- /dev/null +++ b/tests/ui/thread-local/thread-local-mutation.stderr @@ -0,0 +1,9 @@ +error[E0594]: cannot assign to immutable static item `S` + --> $DIR/thread-local-mutation.rs:11:5 + | +LL | S = "after"; + | ^^^^^^^^^^^ cannot assign + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0594`. -- cgit v1.2.3