mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
254 B
Rust
15 lines
254 B
Rust
#![feature(impl_trait_in_assoc_type)]
|
|
|
|
trait X {
|
|
type I;
|
|
fn f() -> Self::I;
|
|
}
|
|
|
|
impl<T> X for () {
|
|
//~^ ERROR `T` is not constrained by the impl trait, self type, or predicates
|
|
type I = impl Sized;
|
|
fn f() -> Self::I {}
|
|
}
|
|
|
|
fn main() {}
|