summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/unclosed-generics-in-impl-def.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/unclosed-generics-in-impl-def.rs')
-rw-r--r--tests/ui/generics/unclosed-generics-in-impl-def.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/generics/unclosed-generics-in-impl-def.rs b/tests/ui/generics/unclosed-generics-in-impl-def.rs
new file mode 100644
index 000000000..2ec99b16e
--- /dev/null
+++ b/tests/ui/generics/unclosed-generics-in-impl-def.rs
@@ -0,0 +1,2 @@
+impl<S: Into<std::borrow::Cow<'static, str>> From<S> for Canonical {} //~ ERROR expected
+fn main() {}