2017-12-28 22:48:30 +00:00
|
|
|
// Copyright 2017 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.
|
|
|
|
|
|
|
|
// @has intra_links/index.html
|
|
|
|
// @has - '//a/@href' '../intra_links/struct.ThisType.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/enum.ThisEnum.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/trait.ThisTrait.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/type.ThisAlias.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/union.ThisUnion.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/fn.this_function.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/constant.THIS_CONST.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/static.THIS_STATIC.html'
|
2018-01-07 23:09:16 +00:00
|
|
|
// @has - '//a/@href' '../intra_links/macro.this_macro.html'
|
2018-01-08 15:33:27 +00:00
|
|
|
// @has - '//a/@href' '../intra_links/trait.SoAmbiguous.html'
|
|
|
|
// @has - '//a/@href' '../intra_links/fn.SoAmbiguous.html'
|
2017-12-28 22:48:30 +00:00
|
|
|
//! In this crate we would like to link to:
|
|
|
|
//!
|
2018-01-07 23:09:16 +00:00
|
|
|
//! * [`ThisType`](ThisType)
|
|
|
|
//! * [`ThisEnum`](ThisEnum)
|
|
|
|
//! * [`ThisTrait`](ThisTrait)
|
|
|
|
//! * [`ThisAlias`](ThisAlias)
|
|
|
|
//! * [`ThisUnion`](ThisUnion)
|
|
|
|
//! * [`this_function`](this_function)
|
|
|
|
//! * [`THIS_CONST`](THIS_CONST)
|
|
|
|
//! * [`THIS_STATIC`](THIS_STATIC)
|
|
|
|
//! * [`this_macro`](this_macro!)
|
2018-01-08 15:33:27 +00:00
|
|
|
//!
|
|
|
|
//! In addition, there's some specifics we want to look at. There's [a trait called
|
|
|
|
//! SoAmbiguous][ambig-trait], but there's also [a function called SoAmbiguous][ambig-fn] too!
|
|
|
|
//! Whatever shall we do?
|
|
|
|
//!
|
|
|
|
//! [ambig-trait]: trait@SoAmbiguous
|
|
|
|
//! [ambig-fn]: SoAmbiguous()
|
2018-01-07 23:09:16 +00:00
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! this_macro {
|
|
|
|
() => {};
|
|
|
|
}
|
2017-12-28 22:48:30 +00:00
|
|
|
|
|
|
|
pub struct ThisType;
|
|
|
|
pub enum ThisEnum { ThisVariant, }
|
|
|
|
pub trait ThisTrait {}
|
|
|
|
pub type ThisAlias = Result<(), ()>;
|
|
|
|
pub union ThisUnion { this_field: usize, }
|
|
|
|
|
|
|
|
pub fn this_function() {}
|
|
|
|
pub const THIS_CONST: usize = 5usize;
|
|
|
|
pub static THIS_STATIC: usize = 5usize;
|
2018-01-08 15:33:27 +00:00
|
|
|
|
|
|
|
pub trait SoAmbiguous {}
|
|
|
|
|
|
|
|
#[allow(bad_style)]
|
|
|
|
pub fn SoAmbiguous() {}
|