summaryrefslogtreecommitdiffstats
path: root/src/test/ui/wf/wf-impl-self-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/wf/wf-impl-self-type.rs')
-rw-r--r--src/test/ui/wf/wf-impl-self-type.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/wf/wf-impl-self-type.rs b/src/test/ui/wf/wf-impl-self-type.rs
new file mode 100644
index 000000000..2dd9b4ef0
--- /dev/null
+++ b/src/test/ui/wf/wf-impl-self-type.rs
@@ -0,0 +1,7 @@
+// Tests that we point at the proper location for an error
+// involving the self-type of an impl
+
+trait Foo {}
+impl Foo for Option<[u8]> {} //~ ERROR the size for
+
+fn main() {}