2014-02-05 16:33:10 -06:00
|
|
|
// Copyright 2014 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.
|
|
|
|
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/index.html
|
2014-10-15 01:05:01 -05:00
|
|
|
#![crate_name = "foo"]
|
2013-12-17 11:05:36 -06:00
|
|
|
|
|
|
|
//! Very docs
|
|
|
|
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/bar/index.html
|
2013-12-17 11:05:36 -06:00
|
|
|
pub mod bar {
|
|
|
|
|
|
|
|
/// So correct
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/bar/baz/index.html
|
2013-12-17 11:05:36 -06:00
|
|
|
pub mod baz {
|
|
|
|
/// Much detail
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/bar/baz/fn.baz.html
|
2013-12-17 11:05:36 -06:00
|
|
|
pub fn baz() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
/// *wow*
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/bar/trait.Doge.html
|
2015-02-12 09:29:52 -06:00
|
|
|
pub trait Doge { fn dummy(&self) { } }
|
2014-07-11 13:59:18 -05:00
|
|
|
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/bar/struct.Foo.html
|
2014-07-11 13:59:18 -05:00
|
|
|
pub struct Foo { x: int, y: uint }
|
|
|
|
|
2015-01-17 11:24:04 -06:00
|
|
|
// @has foo/bar/fn.prawns.html
|
2014-07-11 13:59:18 -05:00
|
|
|
pub fn prawns((a, b): (int, uint), Foo { x, y }: Foo) { }
|
2013-12-17 11:05:36 -06:00
|
|
|
}
|