summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/coherence-lone-type-parameter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/coherence-lone-type-parameter.rs')
-rw-r--r--src/test/ui/coherence/coherence-lone-type-parameter.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-lone-type-parameter.rs b/src/test/ui/coherence/coherence-lone-type-parameter.rs
new file mode 100644
index 000000000..5368fef76
--- /dev/null
+++ b/src/test/ui/coherence/coherence-lone-type-parameter.rs
@@ -0,0 +1,10 @@
+// aux-build:coherence_lib.rs
+
+extern crate coherence_lib as lib;
+use lib::Remote;
+
+impl<T> Remote for T { }
+//~^ ERROR E0210
+
+
+fn main() { }