-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2a96c7
commit 29cd7a2
Showing
20 changed files
with
167 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
#![feature(negative_impls)] | ||
#![deny(suspicious_auto_trait_impls)] | ||
|
||
use std::marker::PhantomData; | ||
|
||
struct ContainsVec<T>(Vec<T>); | ||
impl !Send for ContainsVec<u32> {} | ||
//~^ ERROR | ||
//~| WARNING this will change its meaning | ||
//~^ ERROR cross-crate traits with a default impl, like `Send`, should not be specialized | ||
|
||
pub struct WithPhantomDataSend<T, U>(PhantomData<T>, U); | ||
impl<T> !Send for WithPhantomDataSend<*const T, u8> {} | ||
//~^ ERROR | ||
//~| WARNING this will change its meaning | ||
//~^ ERROR cross-crate traits with a default impl, like `Send`, should not be specialized | ||
|
||
pub struct WithLifetime<'a, T>(&'a (), T); | ||
impl<T> !Sync for WithLifetime<'static, Option<T>> {} | ||
//~^ ERROR | ||
//~| WARNING this will change its meaning | ||
//~^ ERROR cross-crate traits with a default impl, like `Sync`, should not be specialized | ||
|
||
fn main() {} |
Oops, something went wrong.