mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
9 lines
133 B
Rust
9 lines
133 B
Rust
pub trait Tr<'a> {
|
|
type Out;
|
|
}
|
|
|
|
pub fn f<'a, T: Tr<'a>>() -> <T as Tr<'a>>::Out {}
|
|
//~^ ERROR mismatched types
|
|
|
|
pub fn main() {}
|