use std::ops::Fn;
use std::ops::Add;
-struct G;
+struct G<A>;
-impl<'a, A: Add<int, int>> Fn<(A,), int> for G {
+impl<'a, A: Add<int, Output=int>> Fn<(A,), int> for G<A> {
extern "rust-call" fn call(&self, (arg,): (A,)) -> int {
arg.add(1)
}
// ICE trigger
G(1i);
}
-