fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/arg-position-impl-trait-too-long.rs:18:9 3 | 4LL | y: impl FnOnce( 5 | ________- 6LL | | &mut Header, 7LL | | &mut [EntryMetadata], 8LL | | &mut [Entry<C::EncodedKey, C::EncodedValue>] 9LL | | ) -> R, 10 | |__________- this type parameter 11LL | ) { 12LL | let () = y; 13 | ^^ - this expression has type `impl FnOnce(&mut Header, &mut [EntryMetadata], &mut [Entry<C::EncodedKey, C::EncodedValue>]) -> R` 14 | | 15 | expected type parameter `impl FnOnce(&mut Header, &mut [EntryMetadata], &mut [Entry<C::EncodedKey, C::EncodedValue>]) -> R`, found `()` 16 | 17 = note: expected type parameter `impl FnOnce(&mut Header, &mut [EntryMetadata], &mut [Entry<C::EncodedKey, C::EncodedValue>]) -> R` 18 found unit type `()` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0308`.