about summary refs log tree commit diff
path: root/src/test/auxiliary
diff options
context:
space:
mode:
authorDavid Renshaw <dwrenshaw@gmail.com>2013-12-04 21:13:31 -0500
committerDavid Renshaw <dwrenshaw@gmail.com>2013-12-08 18:09:31 -0500
commitd99efe84dfd8aedec08da42d34d140991b8991c7 (patch)
treeff3dc09e9db94ca72143baa883bb6fc68470b381 /src/test/auxiliary
parenta6310f6ad3434a03d5c257db5eae85b7b7522c29 (diff)
downloadrust-d99efe84dfd8aedec08da42d34d140991b8991c7.tar.gz
rust-d99efe84dfd8aedec08da42d34d140991b8991c7.zip
encode trait lifetime params in metadata to allow cross-crate usage
Diffstat (limited to 'src/test/auxiliary')
-rw-r--r--src/test/auxiliary/xcrate-trait-lifetime-param.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/auxiliary/xcrate-trait-lifetime-param.rs b/src/test/auxiliary/xcrate-trait-lifetime-param.rs
new file mode 100644
index 00000000000..e8e5cc53aa3
--- /dev/null
+++ b/src/test/auxiliary/xcrate-trait-lifetime-param.rs
@@ -0,0 +1,13 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+pub trait FromBuf<'a> {
+    fn from_buf(&'a [u8]) -> Self;
+}