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