about summary refs log tree commit diff
path: root/src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2020-01-09 05:56:38 -0500
committerNiko Matsakis <niko@alum.mit.edu>2020-03-26 06:52:55 -0400
commitfda3378e3fcf279a19409ef368ce9bd5b57bfd62 (patch)
tree7fb3ae6e92d79b4c068d1e6f0d1d2dc45de49733 /src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs
parent65071708f8fe72dd2103c6eace0eb6802a6acf03 (diff)
downloadrust-fda3378e3fcf279a19409ef368ce9bd5b57bfd62.tar.gz
rust-fda3378e3fcf279a19409ef368ce9bd5b57bfd62.zip
introduce `negative_impls` feature gate and document
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.
Diffstat (limited to 'src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs')
-rw-r--r--src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs b/src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs
index c65242b1bb1..571f934fc5b 100644
--- a/src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs
+++ b/src/test/ui/traits/traits-inductive-overflow-supertrait-oibit.rs
@@ -3,6 +3,7 @@
 // to be synthesized.
 
 #![feature(optin_builtin_traits)]
+#![feature(negative_impls)]
 
 auto trait Magic: Copy {} //~ ERROR E0568