]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/issue-86719.rs
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
[rust.git] / src / test / ui / impl-trait / issues / issue-86719.rs
1 #![feature(type_alias_impl_trait)]
2
3 trait Bar {
4     type E;
5 }
6 impl<S> Bar for S {
7     type E = impl ; //~ ERROR at least one trait must be specified
8     fn foo() -> Self::E { //~ ERROR `foo` is not a member
9         |_| true //~ ERROR type annotations needed
10     }
11 }
12 fn main() {}