rust/tests/ui/impl-trait/issues/issue-86719.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
279 B
Rust
Raw Normal View History

2022-02-17 07:55:58 -06:00
#![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() {}