diff --git a/tests/pass/function_pointers.rs b/tests/pass/function_pointers.rs index a5c4bc5e0d..7145be334a 100644 --- a/tests/pass/function_pointers.rs +++ b/tests/pass/function_pointers.rs @@ -1,3 +1,5 @@ +#![allow(unpredictable_function_pointer_comparisons)] + use std::mem; trait Answer { diff --git a/tests/pass/issues/issue-91636.rs b/tests/pass/issues/issue-91636.rs index 0037016581..d0cadcd2c7 100644 --- a/tests/pass/issues/issue-91636.rs +++ b/tests/pass/issues/issue-91636.rs @@ -1,3 +1,5 @@ +#![allow(unpredictable_function_pointer_comparisons)] + type BuiltIn = for<'a> fn(&str); struct Function {