about summary refs log tree commit diff
path: root/tests/ui/consts/const-extern-function.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2023-12-10 15:51:06 +0100
committerUrgau <urgau@numericable.fr>2024-12-02 18:43:37 +0100
commit8ce63576bddc95e99b54ebf8ec9da6f52a647ad2 (patch)
treee1da172ae03ae8da831a01bdfe19d0bafff7752b /tests/ui/consts/const-extern-function.rs
parent5e34c2e43c9110ac91579cb1b6d44ebdba0b5712 (diff)
downloadrust-8ce63576bddc95e99b54ebf8ec9da6f52a647ad2.tar.gz
rust-8ce63576bddc95e99b54ebf8ec9da6f52a647ad2.zip
Allow fn pointers comparisons lint in UI tests
Diffstat (limited to 'tests/ui/consts/const-extern-function.rs')
-rw-r--r--tests/ui/consts/const-extern-function.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/consts/const-extern-function.rs b/tests/ui/consts/const-extern-function.rs
index acc438189cb..7629d63266a 100644
--- a/tests/ui/consts/const-extern-function.rs
+++ b/tests/ui/consts/const-extern-function.rs
@@ -1,5 +1,7 @@
 //@ run-pass
+
 #![allow(non_upper_case_globals)]
+#![allow(unpredictable_function_pointer_comparisons)]
 
 extern "C" fn foopy() {}