about summary refs log tree commit diff
path: root/tests/ui/coherence/coherence-blanket.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/coherence/coherence-blanket.rs')
-rw-r--r--tests/ui/coherence/coherence-blanket.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/coherence/coherence-blanket.rs b/tests/ui/coherence/coherence-blanket.rs
new file mode 100644
index 00000000000..55fa89d7507
--- /dev/null
+++ b/tests/ui/coherence/coherence-blanket.rs
@@ -0,0 +1,16 @@
+// run-pass
+#![allow(unused_imports)]
+// aux-build:coherence_lib.rs
+
+// pretty-expanded FIXME #23616
+
+extern crate coherence_lib as lib;
+use lib::Remote1;
+
+pub trait Local {
+    fn foo(&self) { }
+}
+
+impl<T> Local for T { }
+
+fn main() { }