We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c42252 commit 2444494Copy full SHA for 2444494
tests/ui/borrow_interior_mutable_const/others.rs
@@ -42,7 +42,7 @@ impl<T> StaticRef<T> {
42
impl<T> std::ops::Deref for StaticRef<T> {
43
type Target = T;
44
45
- fn deref(&self) -> &'static T {
+ fn deref(&self) -> &T {
46
unsafe { &*self.ptr }
47
}
48
0 commit comments