2011-12-21 10:41:41 -06:00
|
|
|
// error-pattern: copying a noncopyable value
|
|
|
|
|
2012-01-09 18:12:37 -06:00
|
|
|
fn to_lambda1(f: fn@(uint) -> uint) -> fn@(uint) -> uint {
|
2011-12-21 10:41:41 -06:00
|
|
|
ret f;
|
|
|
|
}
|
|
|
|
|
2012-01-23 16:59:00 -06:00
|
|
|
fn to_lambda2(b: fn(uint) -> uint) -> fn@(uint) -> uint {
|
2011-12-21 10:41:41 -06:00
|
|
|
ret to_lambda1({|x| b(x)});
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|