Skip to content

Commit a2d1d14

Browse files
committed
Make const BorrowMut require const Borrow
1 parent e548d77 commit a2d1d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/borrow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub const trait Borrow<Borrowed: ?Sized> {
187187
#[stable(feature = "rust1", since = "1.0.0")]
188188
#[rustc_diagnostic_item = "BorrowMut"]
189189
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
190-
pub const trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> {
190+
pub const trait BorrowMut<Borrowed: ?Sized>: [const] Borrow<Borrowed> {
191191
/// Mutably borrows from an owned value.
192192
///
193193
/// # Examples

0 commit comments

Comments
 (0)