mirror of https://github.com/rust-lang/rust
18 lines
335 B
Rust
18 lines
335 B
Rust
#![feature(type_alias_impl_trait)]
|
|
|
|
use std::fmt::Debug;
|
|
|
|
fn main() {}
|
|
|
|
type Two<T, U> = impl Debug;
|
|
|
|
fn two<T: Debug, U: Debug>(t: T, _: U) -> Two<T, U> {
|
|
(t, 4u32)
|
|
//~^ ERROR `T` doesn't implement `Debug`
|
|
}
|
|
|
|
fn three<T: Debug, U: Debug>(_: T, u: U) -> Two<T, U> {
|
|
(u, 4u32)
|
|
//~^ ERROR `U` doesn't implement `Debug`
|
|
}
|