Skip to content

Commit 7c10399

Browse files
committed
add a test case from lintcheck???
no change in stderr as one can see
1 parent 5fde205 commit 7c10399

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/ui/semicolon_outside_block.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,15 @@ fn issue14926() {
121121
},
122122
}
123123
}
124+
125+
fn f() {
126+
struct Vec;
127+
impl Vec {
128+
unsafe fn set_len(&mut self, _len: usize) {}
129+
fn clear(&mut self) {
130+
unsafe {
131+
self.set_len(0);
132+
}
133+
}
134+
}
135+
}

0 commit comments

Comments
 (0)