summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-13853-5.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/typeck/issue-13853-5.rs')
-rw-r--r--tests/ui/typeck/issue-13853-5.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/typeck/issue-13853-5.rs b/tests/ui/typeck/issue-13853-5.rs
new file mode 100644
index 000000000..2afdf95aa
--- /dev/null
+++ b/tests/ui/typeck/issue-13853-5.rs
@@ -0,0 +1,13 @@
+trait Deserializer<'a> { }
+
+trait Deserializable {
+ fn deserialize_token<'a, D: Deserializer<'a>>(_: D, _: &'a str) -> Self;
+}
+
+impl<'a, T: Deserializable> Deserializable for &'a str {
+ //~^ ERROR type parameter `T` is not constrained
+ fn deserialize_token<D: Deserializer<'a>>(_x: D, _y: &'a str) -> &'a str {
+ }
+}
+
+fn main() {}