mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
fda3378e3f
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
14 lines
301 B
Rust
14 lines
301 B
Rust
#![crate_name = "foo"]
|
|
|
|
#![feature(negative_impls)]
|
|
|
|
pub struct Foo;
|
|
|
|
// @has foo/struct.Foo.html
|
|
// @!has - 'Auto Trait Implementations'
|
|
impl !Send for Foo {}
|
|
impl !Sync for Foo {}
|
|
impl !std::marker::Unpin for Foo {}
|
|
impl !std::panic::RefUnwindSafe for Foo {}
|
|
impl !std::panic::UnwindSafe for Foo {}
|