about summary refs log tree commit diff
path: root/src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-04-27 15:48:49 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-05-06 16:24:48 -0400
commitcefc5b6468077134625648d3c8a97d5fb7ad1219 (patch)
tree21aded29962c385843119f441ee11bcf8fd7a18d /src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs
parent47c8179bc2666ee1ff31d04a97608d2d76c90641 (diff)
downloadrust-cefc5b6468077134625648d3c8a97d5fb7ad1219.tar.gz
rust-cefc5b6468077134625648d3c8a97d5fb7ad1219.zip
add missing aux files
Diffstat (limited to 'src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs')
-rw-r--r--src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs b/src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs
new file mode 100644
index 00000000000..317262f4175
--- /dev/null
+++ b/src/test/rustdoc/inline_cross/aux/rustdoc-trait-object-impl.rs
@@ -0,0 +1,24 @@
+// Copyright 2016 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.
+
+use std::fmt;
+
+pub trait Bar {}
+
+impl<'a> Bar + 'a {
+    pub fn bar(&self) -> usize { 42 }
+}
+
+impl<'a> fmt::Debug for Bar + 'a {
+    fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
+        Ok(())
+    }
+}
+