summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unsized/unsized-inherent-impl-self-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unsized/unsized-inherent-impl-self-type.rs')
-rw-r--r--src/test/ui/unsized/unsized-inherent-impl-self-type.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/unsized/unsized-inherent-impl-self-type.rs b/src/test/ui/unsized/unsized-inherent-impl-self-type.rs
new file mode 100644
index 000000000..8bdf80c94
--- /dev/null
+++ b/src/test/ui/unsized/unsized-inherent-impl-self-type.rs
@@ -0,0 +1,11 @@
+// Test sized-ness checking in substitution in impls.
+
+// impl - struct
+
+struct S5<Y>(Y);
+
+impl<X: ?Sized> S5<X> {
+ //~^ ERROR the size for values of type
+}
+
+fn main() { }