]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/issue-55872-3.rs
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / 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         //~^ ERROR : Copy` is not satisfied [E0277]
16         async {}
17     }
18 }
19
20 fn main() {}