Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e11862f

Browse files
committed
update test
Signed-off-by: Miguel Guarniz <[email protected]>
1 parent 01a957e commit e11862f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
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
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

99
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
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

0 commit comments

Comments
 (0)