]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / consts / const-extern-fn / const-extern-fn-requires-unsafe.mir.stderr
CommitLineData
e74abb32 1error[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
4LL | 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
9error[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
12LL | 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
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0133`.