]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-20646.rs
Rollup merge of #40692 - SamWhited:consistent_str_docs_punctuation, r=bstrie
[rust.git] / src / test / rustdoc / issue-20646.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // aux-build:issue-20646.rs
12 // ignore-cross-compile
13
14 #![feature(associated_types)]
15
16 extern crate issue_20646;
17
18 // @has issue_20646/trait.Trait.html \
19 //      '//*[@id="associatedtype.Output"]' \
20 //      'type Output'
21 pub trait Trait {
22     type Output;
23 }
24
25 // @has issue_20646/fn.fun.html \
26 //      '//*[@class="rust fn"]' 'where T: Trait<Output = i32>'
27 pub fn fun<T>(_: T) where T: Trait<Output=i32> {}
28
29 pub mod reexport {
30     // @has issue_20646/reexport/trait.Trait.html \
31     //      '//*[@id="associatedtype.Output"]' \
32     //      'type Output'
33     // @has issue_20646/reexport/fn.fun.html \
34     //      '//*[@class="rust fn"]' 'where T: Trait<Output = i32>'
35     pub use issue_20646::{Trait, fun};
36 }