Disallow impl autotrait for trait object

This commit is contained in:
David Tolnay
2023-01-18 22:43:05 -08:00
parent a94b9fd0ac
commit 9e1c600f74
6 changed files with 269 additions and 70 deletions

View File

@@ -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 {