This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
d855ca044d
rust
/
tests
/
ui
/
unsafe
/
unsafe-fn-called-from-safe.rs
9 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
Stabilize THIR unsafeck
2023-12-07 11:56:48 +00:00
unsafe
fn
f
(
)
{
return
;
}
Add unsafe blocks, unsafe functions, and two rudimentary tests related to them
2011-10-06 21:33:04 -07:00
fn
main
(
)
{
Revert "add `DefId` to unsafety violations and display function path in E0133" This reverts commit 8b8f6653cfd54525714f02efe7af0a0f830e185c.
2022-04-26 10:43:00 +00:00
f
(
)
;
Stabilize THIR unsafeck
2023-12-07 11:56:48 +00:00
//~^ ERROR call to unsafe function `f` is unsafe
Add unsafe blocks, unsafe functions, and two rudimentary tests related to them
2011-10-06 21:33:04 -07:00
}
Reference in a new issue
Copy permalink