libsyntax: Remove ~fn() from the language
This commit is contained in:
parent
ba739b2135
commit
f977bedafd
5 changed files with 13 additions and 19 deletions
|
|
@ -1,14 +0,0 @@
|
|||
// Copyright 2013 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.
|
||||
|
||||
fn main() {
|
||||
let _: @'static whatever fn(); //~ ERROR expected `fn`, found `whatever`
|
||||
let _: @'static fn();
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ extern mod extra;
|
|||
use extra::arc;
|
||||
use std::util;
|
||||
|
||||
fn foo(blk: ~once fn()) {
|
||||
fn foo(blk: proc()) {
|
||||
blk();
|
||||
blk(); //~ ERROR use of moved value
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ extern mod extra;
|
|||
use extra::arc;
|
||||
use std::util;
|
||||
|
||||
fn foo(blk: ~once fn()) {
|
||||
fn foo(blk: proc()) {
|
||||
blk();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue