mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
10 lines
193 B
Rust
10 lines
193 B
Rust
//@ run-pass
|
|
// Tests equality between supertype and subtype of a function
|
|
// See the issue #91636
|
|
fn foo(_a: &str) {}
|
|
|
|
fn main() {
|
|
let x = foo as fn(&'static str);
|
|
let _ = x == foo;
|
|
}
|