2015-04-06 23:17:51 -05:00
|
|
|
//@ aux-build:issue-20646.rs
|
2015-04-22 17:22:36 -05:00
|
|
|
//@ ignore-cross-compile
|
2015-04-06 23:17:51 -05:00
|
|
|
|
2023-09-27 19:22:18 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/20646
|
2023-09-27 18:51:21 -05:00
|
|
|
#![crate_name="issue_20646"]
|
2015-04-06 23:17:51 -05:00
|
|
|
#![feature(associated_types)]
|
|
|
|
|
|
|
|
extern crate issue_20646;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_20646/trait.Trait.html \
|
2015-04-06 23:17:51 -05:00
|
|
|
// '//*[@id="associatedtype.Output"]' \
|
|
|
|
// 'type Output'
|
|
|
|
pub trait Trait {
|
|
|
|
type Output;
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_20646/fn.fun.html \
|
2023-01-30 12:05:12 -06:00
|
|
|
// '//pre[@class="rust item-decl"]' 'where T: Trait<Output = i32>'
|
2015-04-06 23:17:51 -05:00
|
|
|
pub fn fun<T>(_: T) where T: Trait<Output=i32> {}
|
|
|
|
|
|
|
|
pub mod reexport {
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_20646/reexport/trait.Trait.html \
|
2015-04-06 23:17:51 -05:00
|
|
|
// '//*[@id="associatedtype.Output"]' \
|
|
|
|
// 'type Output'
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_20646/reexport/fn.fun.html \
|
2023-01-30 12:05:12 -06:00
|
|
|
// '//pre[@class="rust item-decl"]' 'where T: Trait<Output = i32>'
|
2015-04-06 23:17:51 -05:00
|
|
|
pub use issue_20646::{Trait, fun};
|
|
|
|
}
|