File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/test/ui/consts/const-extern-fn Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
2- --> $DIR/const-extern-fn-requires-unsafe.rs:9:17
2+ --> $DIR/const-extern-fn-requires-unsafe.rs:12:5
33 |
4- LL | let a: [u8; foo()] ;
5- | ^^^^^ call to unsafe function
4+ LL | foo();
5+ | ^^^^^ call to unsafe function
66 |
77 = note: consult the function's documentation for information on how to avoid undefined behavior
88
99error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
10- --> $DIR/const-extern-fn-requires-unsafe.rs:12:5
10+ --> $DIR/const-extern-fn-requires-unsafe.rs:9:17
1111 |
12- LL | foo();
13- | ^^^^^ call to unsafe function
12+ LL | let a: [u8; foo()] ;
13+ | ^^^^^ call to unsafe function
1414 |
1515 = note: consult the function's documentation for information on how to avoid undefined behavior
1616
You can’t perform that action at this time.
0 commit comments