summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/auxiliary/option_future.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/auxiliary/option_future.rs')
-rw-r--r--src/test/ui/coherence/auxiliary/option_future.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/coherence/auxiliary/option_future.rs b/src/test/ui/coherence/auxiliary/option_future.rs
new file mode 100644
index 000000000..067de1cd8
--- /dev/null
+++ b/src/test/ui/coherence/auxiliary/option_future.rs
@@ -0,0 +1,8 @@
+#![crate_type = "lib"]
+#![feature(negative_impls)]
+#![feature(rustc_attrs)]
+#![feature(with_negative_coherence)]
+
+pub trait Future {}
+
+impl<E> !Future for Option<E> where E: Sized {}