summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-lifetime.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/static/static-lifetime.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/static/static-lifetime.rs b/src/test/ui/static/static-lifetime.rs
new file mode 100644
index 000000000..ce1eeb610
--- /dev/null
+++ b/src/test/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() {
+}