From d99efe84dfd8aedec08da42d34d140991b8991c7 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Wed, 4 Dec 2013 21:13:31 -0500 Subject: encode trait lifetime params in metadata to allow cross-crate usage --- src/test/auxiliary/xcrate-trait-lifetime-param.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/auxiliary/xcrate-trait-lifetime-param.rs (limited to 'src/test/auxiliary') 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 or the MIT license +// , 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; +} -- cgit 1.4.1-3-g733a5