fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: the function or associated item `make_g` exists for fn pointer `fn(&())`, but its trait bounds were not satisfied 2 --> $DIR/issue-57362-2.rs:22:25 3 | 4LL | let x = <fn (&())>::make_g(); 5 | ^^^^^^ function or associated item cannot be called on `fn(&())` due to unsatisfied trait bounds 6 | 7 = note: the following trait bounds were not satisfied: 8 `for<'a> fn(&'a ()): X` 9 = help: items from traits can only be used if the trait is implemented and in scope 10note: `X` defines an item `make_g`, perhaps you need to implement it 11 --> $DIR/issue-57362-2.rs:8:1 12 | 13LL | trait X { 14 | ^^^^^^^ 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0599`.