diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-06-22 12:53:36 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-06 19:17:29 -0400 |
| commit | e11862f811990cda65dceab96adc67c3a2096aa5 (patch) | |
| tree | 0494747d0be46e67481332e8f2551e98005d4fe2 | |
| parent | 01a957e92ac1c0ddd06a26d8af1d273f9b27d742 (diff) | |
| download | rust-e11862f811990cda65dceab96adc67c3a2096aa5.tar.gz rust-e11862f811990cda65dceab96adc67c3a2096aa5.zip | |
update test
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
| -rw-r--r-- | src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr b/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr index 4cd0fd2eaf7..34ec8aadbcf 100644 --- a/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr +++ b/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr @@ -1,16 +1,16 @@ error[E0133]: call to unsafe function is unsafe and requires unsafe function or block - --> $DIR/const-extern-fn-requires-unsafe.rs:9:17 + --> $DIR/const-extern-fn-requires-unsafe.rs:12:5 | -LL | let a: [u8; foo()]; - | ^^^^^ call to unsafe function +LL | foo(); + | ^^^^^ call to unsafe function | = note: consult the function's documentation for information on how to avoid undefined behavior error[E0133]: call to unsafe function is unsafe and requires unsafe function or block - --> $DIR/const-extern-fn-requires-unsafe.rs:12:5 + --> $DIR/const-extern-fn-requires-unsafe.rs:9:17 | -LL | foo(); - | ^^^^^ call to unsafe function +LL | let a: [u8; foo()]; + | ^^^^^ call to unsafe function | = note: consult the function's documentation for information on how to avoid undefined behavior |
