From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/threads-sendsync/issue-43733.thir.stderr | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/ui/threads-sendsync/issue-43733.thir.stderr (limited to 'tests/ui/threads-sendsync/issue-43733.thir.stderr') diff --git a/tests/ui/threads-sendsync/issue-43733.thir.stderr b/tests/ui/threads-sendsync/issue-43733.thir.stderr new file mode 100644 index 000000000..ea7ff4080 --- /dev/null +++ b/tests/ui/threads-sendsync/issue-43733.thir.stderr @@ -0,0 +1,19 @@ +error[E0133]: call to unsafe function `$LOCALKEYINNER::::get` is unsafe and requires unsafe function or block + --> $DIR/issue-43733.rs:21:5 + | +LL | __KEY.get(Default::default) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function + | + = note: consult the function's documentation for information on how to avoid undefined behavior + +error[E0133]: call to unsafe function `LocalKey::::new` is unsafe and requires unsafe function or block + --> $DIR/issue-43733.rs:26:42 + | +LL | static FOO: std::thread::LocalKey = std::thread::LocalKey::new(__getit); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function + | + = note: consult the function's documentation for information on how to avoid undefined behavior + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0133`. -- cgit v1.2.3