diff options
Diffstat (limited to 'src/test/compile-fail/unboxed-closure-feature-gate.rs')
| -rw-r--r-- | src/test/compile-fail/unboxed-closure-feature-gate.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/unboxed-closure-feature-gate.rs b/src/test/compile-fail/unboxed-closure-feature-gate.rs index 9bb8037e2c3..5eb67a9bb71 100644 --- a/src/test/compile-fail/unboxed-closure-feature-gate.rs +++ b/src/test/compile-fail/unboxed-closure-feature-gate.rs @@ -15,11 +15,11 @@ trait Foo<A,R> { } fn main() { - let x: Box<Foo(int)>; + let x: Box<Foo(isize)>; //~^ ERROR parenthetical notation is only stable when used with the `Fn` family // No errors with these: - let x: Box<Fn(int)>; - let x: Box<FnMut(int)>; - let x: Box<FnOnce(int)>; + let x: Box<Fn(isize)>; + let x: Box<FnMut(isize)>; + let x: Box<FnOnce(isize)>; } |
