Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 600b027

Browse files
Make Clippy test no longer unsound
1 parent 8bfda7a commit 600b027

File tree

1 file changed

+1
-1
lines changed
  • src/tools/clippy/tests/ui/borrow_interior_mutable_const

1 file changed

+1
-1
lines changed

‎src/tools/clippy/tests/ui/borrow_interior_mutable_const/others.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<T> StaticRef<T> {
4242
impl<T> std::ops::Deref for StaticRef<T> {
4343
type Target = T;
4444

45-
fn deref(&self) -> &'staticT {
45+
fn deref(&self) -> &T {
4646
unsafe { &*self.ptr }
4747
}
4848
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /