]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-55872-3.rs
Auto merge of #95604 - nbdd0121:used2, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / issue-55872-3.rs
1 // edition:2018
2 // ignore-compare-mode-chalk
3
4 #![feature(type_alias_impl_trait)]
5
6 pub trait Bar {
7     type E: Copy;
8
9     fn foo<T>() -> Self::E;
10 }
11
12 impl<S> Bar for S {
13     type E = impl std::marker::Copy;
14     fn foo<T>() -> Self::E {
15         async {}
16         //~^ ERROR the trait bound `impl Future<Output = ()>: Copy` is not satisfied [E0277]
17     }
18 }
19
20 fn main() {}