Skip to content

Commit 4096d4a

Browse files
committed
Allow fn pointers comparisons lint in UI tests
1 parent 80c2e8b commit 4096d4a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/pass/function_pointers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unpredictable_function_pointer_comparisons)]
2+
13
use std::mem;
24

35
trait Answer {

tests/pass/issues/issue-91636.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unpredictable_function_pointer_comparisons)]
2+
13
type BuiltIn = for<'a> fn(&str);
24

35
struct Function {

0 commit comments

Comments
 (0)