blob: 18a59841e9fab3041e667b5cb29c9e85ab456a0e [file] [log] [blame] [edit]
//@ run-pass
#[derive(PartialEq, Debug)]
struct Foo(isize);
#[derive(PartialEq, Debug)]
struct Bar(isize, isize);
pub fn main() {
let f: fn(isize) -> Foo = Foo;
let g: fn(isize, isize) -> Bar = Bar;
assert_eq!(f(42), Foo(42));
assert_eq!(g(4, 7), Bar(4, 7));
}