]> git.lizzy.rs Git - rust.git/blobdiff - src/test/pretty/fn-types.rs
Auto merge of #74366 - t-rapp:tr-bufreader-pos, r=LukasKalbertodt
[rust.git] / src / test / pretty / fn-types.rs
index 1313af2df3d88c742a5b11f7b9658ca6519157e4..842138e28c3531f51baa001980e3c07bd7123492 100644 (file)
@@ -1,15 +1,5 @@
-// 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
 
 fn from_foreign_fn(_x: fn()) { }
-fn from_stack_closure(_x: ||) { }
+fn from_stack_closure<F>(_x: F) where F: Fn() { }
 fn main() { }