We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03949f5 commit c80868eCopy full SHA for c80868e
src/librustc_borrowck/borrowck/README.md
@@ -633,7 +633,7 @@ Here is a concrete example of a bug this rule prevents:
633
634
```rust
635
// Test region-reborrow-from-shorter-mut-ref.rs:
636
-fn copy_pointer<'a,'b,T>(x: &'a mut &'b mut T) -> &'b mut T {
+fn copy_borrowed_ptr<'a,'b,T>(x: &'a mut &'b mut T) -> &'b mut T {
637
&mut **p // ERROR due to clause (1)
638
}
639
fn main() {
0 commit comments