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 6eb5bfc commit b700d90Copy full SHA for b700d90
src/tools/rust-analyzer/crates/test-utils/src/minicore.rs
@@ -395,13 +395,13 @@ pub mod convert {
395
396
pub mod borrow {
397
// region:borrow
398
- pub trait Borrow<Borrowed: crate::marker::PointeeSized>: crate::marker::PointeeSized {
+ pub trait Borrow<Borrowed: ?Sized> {
399
fn borrow(&self) -> &Borrowed;
400
}
401
// endregion:borrow
402
403
// region:borrow_mut
404
- pub trait BorrowMut<Borrowed: crate::marker::PointeeSized>: Borrow<Borrowed> {
+ pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> {
405
fn borrow_mut(&mut self) -> &mut Borrowed;
406
407
// endregion:borrow_mut
0 commit comments