permit negative impls for non-auto traits
This commit is contained in:
parent
a17dd36084
commit
e8a05e201e
35 changed files with 328 additions and 101 deletions
|
|
@ -81,6 +81,10 @@ impl<T: ?Sized> Deref for &T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: ?Sized> !DerefMut for &T {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: ?Sized> Deref for &mut T {
|
||||
type Target = T;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue