]>
git.proxmox.com Git - rustc.git/blob - 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.
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.
11 // aux-build:issue-20646.rs
14 #![feature(associated_types)]
16 extern crate issue_20646
;
18 // @has issue_20646/trait.Trait.html \
19 // '//*[@id="associatedtype.Output"]' \
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> {}
30 // @has issue_20646/reexport/trait.Trait.html \
31 // '//*[@id="associatedtype.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}
;