diff options
| author | Patrick Walton <[email protected]> | 2010-10-28 15:02:00 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-10-28 15:02:00 -0700 |
| commit | ee901858a27bf00c7dd66e7cfecb9dd97029dba8 (patch) | |
| tree | 065039a8a875af53eb25f9698635142b934d2355 /src/lib | |
| parent | Merge branch 'gcc-4.5.1' of http://github.com/rillian/rust (diff) | |
| download | rust-ee901858a27bf00c7dd66e7cfecb9dd97029dba8.tar.xz rust-ee901858a27bf00c7dd66e7cfecb9dd97029dba8.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); |