diff options
| author | Patrick Walton <[email protected]> | 2010-10-28 15:02:00 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-10-28 15:07:05 -0700 |
| commit | 67bcc70754ffa27b37c10646daef43d83dd9a1b4 (patch) | |
| tree | b2250c157fe5e7c9b359b06fa6468f9f34986c68 /src/lib | |
| parent | Revert "rustboot: Emit an error instead of asserting in trans when a T is pas... (diff) | |
| download | rust-67bcc70754ffa27b37c10646daef43d83dd9a1b4.tar.xz rust-67bcc70754ffa27b37c10646daef43d83dd9a1b4.zip | |
rustboot: Emit an error instead of asserting in trans when a T is passed by value
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/list.rs b/src/lib/list.rs index 7b861315..da8d3c0a 100644 --- a/src/lib/list.rs +++ b/src/lib/list.rs @@ -12,7 +12,7 @@ tag list[T] { nil; } -fn foldl[T,U](&list[T] ls, U u, fn(&T t, U u) -> U f) -> U { +fn foldl[T,U](&list[T] ls, &U u, fn(&T t, U u) -> U f) -> U { alt(ls) { case (cons[T](?hd, ?tl)) { auto u_ = f(hd, u); |