]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error[E0277]: the trait bound `for<'r> fn(&'r i32): Foo` is not satisfied |
2 | --> $DIR/issue-46989.rs:40:5 | |
3 | | | |
4 | LL | assert_foo::<fn(&i32)>(); | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `for<'r> fn(&'r i32)` | |
6 | | | |
7 | = help: the following implementations were found: | |
8 | <fn(A) as Foo> | |
9 | note: required by `assert_foo` | |
10 | --> $DIR/issue-46989.rs:37:1 | |
11 | | | |
12 | LL | fn assert_foo<T: Foo>() {} | |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
14 | ||
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |