]> git.lizzy.rs Git - rust.git/blob - tests/ui/binop/binary-op-on-fn-ptr-eq.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / binop / binary-op-on-fn-ptr-eq.rs
1 // run-pass
2 // Tests equality between supertype and subtype of a function
3 // See the issue #91636
4 fn foo(_a: &str) {}
5
6 fn main() {
7     let x = foo as fn(&'static str);
8     let _ = x == foo;
9 }