summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/owned-implies-static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/owned-implies-static.rs')
-rw-r--r--tests/ui/regions/owned-implies-static.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/regions/owned-implies-static.rs b/tests/ui/regions/owned-implies-static.rs
new file mode 100644
index 000000000..2efa8cc02
--- /dev/null
+++ b/tests/ui/regions/owned-implies-static.rs
@@ -0,0 +1,8 @@
+// run-pass
+// pretty-expanded FIXME #23616
+
+fn f<T: 'static>(_x: T) {}
+
+pub fn main() {
+ f(Box::new(5));
+}