summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.rs
blob: 685d76ee36f33cb5f3a56a48dde128810e019540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Regression test for issue 67856

#![feature(unboxed_closures)]
#![feature(type_alias_impl_trait)]
#![feature(fn_traits)]

trait MyTrait {}
impl MyTrait for () {}

impl<F> FnOnce<()> for &F {
    //~^ ERROR type parameter `F` must be used
    type Output = impl MyTrait;
    extern "rust-call" fn call_once(self, _: ()) -> Self::Output {}
}
fn main() {}