fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0277]: the trait bound `for<'r> fn(&'r i32): Foo` is not satisfied 2 --> $DIR/issue-46989.rs:40:18 3 | 4LL | fn assert_foo<T: Foo>() {} 5 | ---------- --- required by this bound in `assert_foo` 6... 7LL | assert_foo::<fn(&i32)>(); 8 | ^^^^^^^^ the trait `Foo` is not implemented for `for<'r> fn(&'r i32)` 9 | 10 = help: the following implementations were found: 11 <fn(A) as Foo> 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0277`.