about summary refs log tree commit diff
path: root/tests/ui/static/static-lifetime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static/static-lifetime.rs')
-rw-r--r--tests/ui/static/static-lifetime.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/static/static-lifetime.rs b/tests/ui/static/static-lifetime.rs
new file mode 100644
index 00000000000..ce1eeb6105f
--- /dev/null
+++ b/tests/ui/static/static-lifetime.rs
@@ -0,0 +1,6 @@
+pub trait Arbitrary: Sized + 'static {}
+
+impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {} //~ ERROR lifetime bound
+
+fn main() {
+}