Disallow impl autotrait for trait object
This commit is contained in:
parent
a94b9fd0ac
commit
9e1c600f74
6 changed files with 269 additions and 70 deletions
|
@ -31,8 +31,8 @@ cfg_if! {
|
|||
pub auto trait Send {}
|
||||
pub auto trait Sync {}
|
||||
|
||||
impl<T: ?Sized> Send for T {}
|
||||
impl<T: ?Sized> Sync for T {}
|
||||
impl<T> Send for T {}
|
||||
impl<T> Sync for T {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! rustc_erase_owner {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue