mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
279 B
Rust
13 lines
279 B
Rust
#![feature(type_alias_impl_trait)]
|
|
|
|
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() {}
|