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
rust
/
src
/
test
/
ui
/
unsafe-pointer-assignability.rs
12 lines
115 B
Rust
Raw
Normal View
History
Unescape
Escape
tests: Add missing run-pass annotations
2019-07-27 00:54:25 +03:00
// run-pass
Mass rename uint/int to usize/isize Now that support has been removed, all lingering use cases are renamed.
2015-03-25 17:06:52 -07:00
fn
f
(
x
:
*
const
isize
)
{
librustc: Allow &T to be assigned to *T. r=nmatsakis
2012-11-27 18:41:17 -08:00
unsafe
{
Use assert_eq! rather than assert! where possible
2013-05-18 22:02:45 -04:00
assert_eq!
(
*
x
,
3
)
;
librustc: Allow &T to be assigned to *T. r=nmatsakis
2012-11-27 18:41:17 -08:00
}
}
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub
fn
main
(
)
{
librustc: Allow &T to be assigned to *T. r=nmatsakis
2012-11-27 18:41:17 -08:00
f
(
&
3
)
;
}
Reference in New Issue
Copy Permalink