mirror of https://github.com/rust-lang/rust
16 lines
359 B
Rust
16 lines
359 B
Rust
// Regression test for issue 67856
|
|
|
|
#![feature(unboxed_closures)]
|
|
#![feature(impl_trait_in_assoc_type)]
|
|
#![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() {}
|