summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr')
-rw-r--r--src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr62
1 files changed, 61 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr b/src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr
index 303aeb7ae..badc284ec 100644
--- a/src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr
+++ b/src/tools/clippy/tests/ui/multiple_unsafe_ops_per_block.stderr
@@ -125,5 +125,65 @@ note: raw pointer dereference occurs here
LL | unsafe { char::from_u32_unchecked(*ptr.cast::<u32>()) }
| ^^^^^^^^^^^^^^^^^^
-error: aborting due to 5 previous errors
+error: this `unsafe` block contains 2 unsafe operations, expected only one
+ --> $DIR/multiple_unsafe_ops_per_block.rs:123:5
+ |
+LL | / unsafe {
+LL | | x();
+LL | | x();
+LL | | }
+ | |_____^
+ |
+note: unsafe function call occurs here
+ --> $DIR/multiple_unsafe_ops_per_block.rs:124:9
+ |
+LL | x();
+ | ^^^
+note: unsafe function call occurs here
+ --> $DIR/multiple_unsafe_ops_per_block.rs:125:9
+ |
+LL | x();
+ | ^^^
+
+error: this `unsafe` block contains 2 unsafe operations, expected only one
+ --> $DIR/multiple_unsafe_ops_per_block.rs:134:9
+ |
+LL | / unsafe {
+LL | | T::X();
+LL | | T::X();
+LL | | }
+ | |_________^
+ |
+note: unsafe function call occurs here
+ --> $DIR/multiple_unsafe_ops_per_block.rs:135:13
+ |
+LL | T::X();
+ | ^^^^^^
+note: unsafe function call occurs here
+ --> $DIR/multiple_unsafe_ops_per_block.rs:136:13
+ |
+LL | T::X();
+ | ^^^^^^
+
+error: this `unsafe` block contains 2 unsafe operations, expected only one
+ --> $DIR/multiple_unsafe_ops_per_block.rs:144:5
+ |
+LL | / unsafe {
+LL | | x.0();
+LL | | x.0();
+LL | | }
+ | |_____^
+ |
+note: unsafe function call occurs here
+ --> $DIR/multiple_unsafe_ops_per_block.rs:145:9
+ |
+LL | x.0();
+ | ^^^^^
+note: unsafe function call occurs here
+ --> $DIR/multiple_unsafe_ops_per_block.rs:146:9
+ |
+LL | x.0();
+ | ^^^^^
+
+error: aborting due to 8 previous errors