summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/issue-26448-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/issue-26448-1.rs')
-rw-r--r--tests/ui/regions/issue-26448-1.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/regions/issue-26448-1.rs b/tests/ui/regions/issue-26448-1.rs
new file mode 100644
index 000000000..7d2d75bf2
--- /dev/null
+++ b/tests/ui/regions/issue-26448-1.rs
@@ -0,0 +1,13 @@
+// run-pass
+
+pub trait Foo<T> {
+ fn foo(self) -> T;
+}
+
+impl<'a, T> Foo<T> for &'a str where &'a str: Into<T> {
+ fn foo(self) -> T {
+ panic!();
+ }
+}
+
+fn main() {}