mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
14 lines
291 B
Rust
14 lines
291 B
Rust
#![feature(impl_trait_in_assoc_type)]
|
|
|
|
trait Bar {
|
|
type E;
|
|
}
|
|
impl<S> Bar for S {
|
|
type E = impl ; //~ ERROR at least one trait must be specified
|
|
fn foo() -> Self::E {
|
|
//~^ ERROR `foo` is not a member
|
|
|_| true //~ ERROR type annotations needed
|
|
}
|
|
}
|
|
fn main() {}
|