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 1
1
error[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
3
3
|
4
- LL | let a: [u8; foo()] ;
5
- | ^^^^^ call to unsafe function
4
+ LL | foo();
5
+ | ^^^^^ call to unsafe function
6
6
|
7
7
= note: consult the function's documentation for information on how to avoid undefined behavior
8
8
9
9
error[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
11
11
|
12
- LL | foo();
13
- | ^^^^^ call to unsafe function
12
+ LL | let a: [u8; foo()] ;
13
+ | ^^^^^ call to unsafe function
14
14
|
15
15
= note: consult the function's documentation for information on how to avoid undefined behavior
16
16
You can’t perform that action at this time.
0 commit comments