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
638491712e
rust
/
src
/
test
/
compile-fail
/
regions-ret.rs
10 lines
95 B
Rust
Raw
Normal View
History
Unescape
Escape
test: Add a simple test for dangling pointers
2012-03-24 20:59:11 -05:00
// error-pattern: mismatched types
change region syntax to &r/T in place of &r.T
2012-07-12 11:36:56 -05:00
fn
f
(
x
:
&
a
/
int
)
->
&
a
/
int
{
test: Add a simple test for dangling pointers
2012-03-24 20:59:11 -05:00
ret
&
3
;
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink