2015-04-06 20:49:30 +00:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
//! Dox
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has src/foo/src-links.rs.html
|
|
|
|
//@ has foo/index.html '//a/@href' '../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
|
|
|
|
#[path = "src-links/mod.rs"]
|
|
|
|
pub mod qux;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has src/foo/src-links.rs.html
|
|
|
|
//@ has foo/fizz/index.html '//a/@href' '../src/foo/src-links/fizz.rs.html'
|
2023-01-05 04:17:57 +00:00
|
|
|
#[path = "src-links/../src-links/fizz.rs"]
|
|
|
|
pub mod fizz;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/bar/index.html '//a/@href' '../../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub mod bar {
|
|
|
|
|
|
|
|
/// Dox
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/bar/baz/index.html '//a/@href' '../../../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub mod baz {
|
|
|
|
/// Dox
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/bar/baz/fn.baz.html '//a/@href' '../../../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub fn baz() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Dox
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/bar/trait.Foobar.html '//a/@href' '../../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub trait Foobar { fn dummy(&self) { } }
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/bar/struct.Foo.html '//a/@href' '../../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub struct Foo { x: i32, y: u32 }
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/bar/fn.prawns.html '//a/@href' '../../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub fn prawns((a, b): (i32, u32), Foo { x, y }: Foo) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Dox
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/fn.modfn.html '//a/@href' '../src/foo/src-links.rs.html'
|
2015-04-06 20:49:30 +00:00
|
|
|
pub fn modfn() { }
|
|
|
|
|
|
|
|
// same hierarchy as above, but just for the submodule
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has src/foo/src-links/mod.rs.html
|
|
|
|
//@ has foo/qux/index.html '//a/@href' '../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/bar/index.html '//a/@href' '../../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/bar/baz/index.html '//a/@href' '../../../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/bar/baz/fn.baz.html '//a/@href' '../../../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/bar/trait.Foobar.html '//a/@href' '../../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/bar/struct.Foo.html '//a/@href' '../../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/bar/fn.prawns.html '//a/@href' '../../../src/foo/src-links/mod.rs.html'
|
|
|
|
//@ has foo/qux/fn.modfn.html '//a/@href' '../../src/foo/src-links/mod.rs.html'
|