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/test/run-pass/leak-box-as-tydesc.rs | |
| 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/test/run-pass/leak-box-as-tydesc.rs')
| -rw-r--r-- | src/test/run-pass/leak-box-as-tydesc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/leak-box-as-tydesc.rs b/src/test/run-pass/leak-box-as-tydesc.rs index 7da40cfe..efd55d79 100644 --- a/src/test/run-pass/leak-box-as-tydesc.rs +++ b/src/test/run-pass/leak-box-as-tydesc.rs @@ -1,7 +1,7 @@ -fn leaky[T](T t) { +fn leaky[T](&T t) { } fn main() { auto x = @10; leaky[@int](x); -}
\ No newline at end of file +} |