mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
21 lines
361 B
Rust
21 lines
361 B
Rust
//@ known-bug: #121134
|
|
trait Output<'a> {
|
|
type Type;
|
|
}
|
|
|
|
struct Wrapper;
|
|
|
|
impl Wrapper {
|
|
fn do_something_wrapper<O, F>(&mut self, do_something_wrapper: F)
|
|
where
|
|
FnOnce:,
|
|
F: for<'a> FnOnce(<F as Output<i32, _>>::Type),
|
|
{
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let mut wrapper = Wrapper;
|
|
wrapper.do_something_wrapper::<i32, _>(|value| ());
|
|
}
|