]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-20646.rs
Re-add #[allow(unused)] attr
[rust.git] / tests / rustdoc / issue-20646.rs
1 // aux-build:issue-20646.rs
2 // ignore-cross-compile
3
4 #![feature(associated_types)]
5
6 extern crate issue_20646;
7
8 // @has issue_20646/trait.Trait.html \
9 //      '//*[@id="associatedtype.Output"]' \
10 //      'type Output'
11 pub trait Trait {
12     type Output;
13 }
14
15 // @has issue_20646/fn.fun.html \
16 //      '//*[@class="rust fn"]' 'where T: Trait<Output = i32>'
17 pub fn fun<T>(_: T) where T: Trait<Output=i32> {}
18
19 pub mod reexport {
20     // @has issue_20646/reexport/trait.Trait.html \
21     //      '//*[@id="associatedtype.Output"]' \
22     //      'type Output'
23     // @has issue_20646/reexport/fn.fun.html \
24     //      '//*[@class="rust fn"]' 'where T: Trait<Output = i32>'
25     pub use issue_20646::{Trait, fun};
26 }