File: missing_unsafe.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (9 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
error[E0133]: call to unsafe function `f` is unsafe and requires unsafe function or block
 --> tests/ui/missing_unsafe.rs:4:12
  |
4 |         fn f(x: i32);
  |            ^        - items do not inherit unsafety from separate enclosing items
  |            |
  |            call to unsafe function
  |
  = note: consult the function's documentation for information on how to avoid undefined behavior