]>
Commit | Line | Data |
---|---|---|
e74abb32 | 1 | error[E0133]: call to unsafe function is unsafe and requires unsafe function or block |
94222f64 | 2 | --> $DIR/const-extern-fn-requires-unsafe.rs:9:17 |
e74abb32 | 3 | | |
94222f64 XL |
4 | LL | let a: [u8; foo()]; |
5 | | ^^^^^ call to unsafe function | |
e74abb32 XL |
6 | | |
7 | = note: consult the function's documentation for information on how to avoid undefined behavior | |
8 | ||
9 | error[E0133]: call to unsafe function is unsafe and requires unsafe function or block | |
04454e1e | 10 | --> $DIR/const-extern-fn-requires-unsafe.rs:12:5 |
e74abb32 | 11 | | |
94222f64 XL |
12 | LL | foo(); |
13 | | ^^^^^ call to unsafe function | |
e74abb32 XL |
14 | | |
15 | = note: consult the function's documentation for information on how to avoid undefined behavior | |
16 | ||
17 | error: aborting due to 2 previous errors | |
18 | ||
19 | For more information about this error, try `rustc --explain E0133`. |