This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
8d381823e2
rust
/
src
/
test
/
run-pass
/
leak-box-as-tydesc.rs
8 lines
71 B
Rust
Raw
Normal View
History
Unescape
Escape
rustboot: Emit an error instead of asserting in trans when a T is passed by value
2010-10-28 17:02:00 -05:00
fn
leaky
[
T
]
(
&
T
t
)
{
Fix a leak when box types are used via type descriptors.
2010-09-12 03:05:56 -05:00
}
fn
main
(
)
{
auto
x
=
@
10
;
leaky
[
@
int
]
(
x
)
;
rustboot: Emit an error instead of asserting in trans when a T is passed by value
2010-10-28 17:02:00 -05:00
}
Reference in New Issue
Copy Permalink