]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/disamb-stmt-expr.rs
Rollup merge of #77920 - ayazhafiz:i/mut-ident-spacing, r=jyn514
[rust.git] / src / test / pretty / disamb-stmt-expr.rs
index 0c4cd103b82ef73547ebf7c1e32da23d101d18ef..601ca7bb6de1cd3e6836cf1cd6da5854d9328ba2 100644 (file)
@@ -1,20 +1,10 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 // pp-exact
 
 // Here we check that the parentheses around the body of `wsucc()` are
 // preserved.  They are needed to disambiguate `{return n+1}; - 0` from
 // `({return n+1}-0)`.
 
-fn id<F>(f: F) -> int where F: Fn() -> int { f() }
+fn id<F>(f: F) -> isize where F: Fn() -> isize { f() }
 
-fn wsucc(_n: int) -> int { id(|| { 1 }) - 0 }
+fn wsucc(_n: isize) -> isize { id(|| { 1 }) - 0 }
 fn main() { }